Sayamindu Dasgupta sayamindu at
Mon Nov 10 17:49:50 EST 2008

On Mon, Nov 10, 2008 at 10:15 PM, Tony Anderson <tony_anderson at> wrote:
> 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.

Hmm.. I should have read more carefully :-)
I'm not sure if this is doable in a straightforward manner in Python.

I have written a small example on how this can be done in C:


Sayamindu Dasgupta

More information about the Devel mailing list