[PyQt] Changing Input Text Language programmatically?

Timothy W. Grove tim_grove at sil.org
Mon Nov 25 21:23:08 GMT 2013


Is there a way to access a system's input languages through PyQt or 
Python 3 without having to change the input language through 'Control 
Panel' or 'System Preferences'? I have an application in which a user 
may input text in multiple languages (Arabic, English, etc ...) through 
QLineEdit widgets, and I would like these widgets to "remember" which 
language they are associated with and change to that particular language 
automatically when a user starts to enter text. Is this possible?

Best regards,
Tim Grove


More information about the PyQt mailing list