On Mon, Nov 10, 2008 at 10:15 PM, Tony Anderson <[EMAIL PROTECTED]> 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:
http://dev.laptop.org/~sayamindu/test_xkb.c

-hth-
Sayamindu



-- 
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]
_______________________________________________
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel

Reply via email to