Click here to Skip to main content
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 8: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)



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 28 Feb 2012
Copyright © CodeProject, 1999-2014
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