Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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
 
Share this answer
 
install this package :
win32api.exe
then
#########################################################
import win32api
win32api.LoadKeyboardLayout('00000401',1) # to switch to arabic
win32api.LoadKeyboardLayout('00000409',1) # to switch to english
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900