Hello, I am trying to write a virtual keyboard for multiple languages. I did the following
event = gtk.gdk.Event(gtk.gdk.KEY_PRESS)
event.keyval = gtk.keysyms.a
event.state = gtk.gdk.SHIFT_MASK
event.window = win.get_root_window()
widget.emit('key-press-event', event)
For the above code I expected the output to be a capital 'A' but what I
got was lower case 'a'
As the virtual keyboard is designed for multiple language i just want
the application to be generic so that if I change the X11's keyboard
layout the key emitted should be in the value in the corresponding language.
Please help me in this regard
regards
--
Joshua Immanuel
HiPro IT Solutions Pvt. Ltd.
http://hipro.co.in
signature.asc
Description: OpenPGP digital signature
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
