tony_anderson at usa.net
Mon Nov 10 11:45:16 EST 2008
Thanks for the help. However, I don't think I expressed myself clearly.
I have my XO set up to switch between us and np keyboard layouts. What I
need is a way in Python to find out which of these layouts is currently
selected. The file /etc/sysconfig/keyboard is also unchanged when the '%
x' key is used to switch the layout.
Naturally, I could put a combobox in a toolbar and have the user enter
the selected keyboard, but it would be much more user-friendly to have
the activity determine that for itself.
Sayamindu Dasgupta wrote:
> Hi Tony,
> Take a look at /etc/sysconfig/keyboard
> On Mon, Nov 10, 2008 at 8:52 PM, Tony Anderson <tony_anderson at usa.net> wrote:
>> I am writing some python code which needs to interrogate the system
>> to determine which keyboard layout is currently selected. The goal is to
>> show an image of the keyboard for Nepali students with a US keyboard. I
>> checked /home/olpc/.i18n but this does not change with the % x key.
>> Anyone know how that can be determined?
>> Devel mailing list
>> Devel at lists.laptop.org
More information about the Devel