Click here to Skip to main content
11,703,632 members (66,609 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Python2.7
hello ,
i want to change keyboard language from english to arabic in python , like i have two line edit , write on first one in english and when move to second line edit language will be arabic automatically ??
Posted 4-Jan-12 7:29am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I would advice not to try it. The user knows how to change input language if there are more than two languages installed. What if there is nothing to switch? It's the best to leave it to the user.

—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

install this package :
win32api.exe
then
#########################################################
import win32api                             
win32api.LoadKeyboardLayout('00000401',1) # to switch to arabic    
win32api.LoadKeyboardLayout('00000409',1) # to switch to english
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 550
1 Maciej Los 530
2 Sergey Alexandrovich Kryukov 381
3 Andy Lanng 294
4 CPallini 195
0 OriginalGriff 8,744
1 Sergey Alexandrovich Kryukov 7,747
2 CPallini 5,107
3 Maciej Los 4,716
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 28 Feb 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100