i want to change keyboard language from english to arabic in python on windows XP, like i have two line edit , write on first one in english and when move to second line edit language will be arabic automatically ??
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are describing a non trivial task. There is – afaik – no standard python package/module to support multi-language keyboard-layouts for various operating systems. It depends on your OS and the used IME (Input Method Engine). Under linux you might use the ibus-bindings or use a system-tool to change the layout. Under windows (which im not familar with) you might consider this post Win32 Api access to keyboardlayout which uses a win32-api call to change the keyboard layot.
I updated my answer, by copying the relevant section from the comment of the OP, just to help users with a similar question: