I'm currently porting the python checkbook manager
(pycheckbook.sourceforge.net) from the Tk widget set to PyGTK. I've
found most of this work very straightforward, and really like the pygtk
module a great deal. However, I'm having trouble with binding keys to
commands. I would like to be able to bind, for example, Control-e to
edit the current entry. In tk this is fairly straightforward, as I can
use:
self.window.bind("<Control-e>",self.editentry)
I've tried to use something analogous to how I bind commands to buttons,
but
self.window.connect("<Control>e",self.editentry)
doesn't work, nor do several other variants of the key strokes.
I was browsing through some GTK documentation, and I came upon keyboard
accelerators. Is this what I want?
I would be very grateful for any help that people can offer. Thanks!
Rick
[EMAIL PROTECTED]
http://www.wag.caltech.edu/home/rpm
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk