On Thu, Mar 26, 2009 at 5:23 AM, Jeremy Katz <katzj(a)redhat.com> wrote:
On Wednesday, March 25 2009, Peter Robinson said:
> > I'm trying to implement a very basic python module for handling XKB
> > stuff. It is based on libxklavier[1], and can currently show the
> > layouts available, as well as the variants for each layout. I will put
> > this into Git as soon as I have figured out how to set the XKB
> > configuration as well.
> > libxklavier is Gobject based, but the standard PyGobject wrapping
> > stuff (h2def, etc) did not work for me, so I decided to do a
> > simplified module instead, which should take care of all our
> > requirements for the time being.
>
> Fedora has a package called system-config-keyboard which is written in
> python. Not sure if that can be of help to you.
>From someone who's had way too much to do with system-config-keyboard,
Ah yes, it seems to use the hardcoded list inside rhpl
I'd say it's not helpful and would warn against it. That
said, it is
worth looking at the gnome control-center keyboard stuff -- while C
based instead of python, it's likely along a similar line of what's
trying to be done. And sharing is better than reinventing the wheel.
Plus, that could then help with the future idea of anaconda switching to
something like that :-)
Precisely :-). I am in fact using libxklavier (which is the base XKB
manipulation lib used by the GNOME capplet and panel applet) to
implement this Python module.
Thanks,
Sayamindu
Jeremy
_______________________________________________
Fedora-olpc-list mailing list
Fedora-olpc-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-olpc-list
--
Sayamindu Dasgupta
[
http://sayamindu.randomink.org/ramblings]