[pygtk] Implementing command history with a gtk.Entry
David M. Cook
dave at davidcook.org
Wed Jul 26 00:11:25 WST 2006
On Mon, Jul 24, 2006 at 10:47:44AM -0700, N. French wrote:
> My problem is: how do I catch the up/down arrow keypresses? I was
I know of two ways to catch the up/down arrows:
- connect to the key-press event
- Create your own Entry subclass with up/down arrow keybindings
See the FAQ for the latter, which is the more elegant solution if you are
not using glade. Unfortunately, I don't think gtk lets you add keybindings
to an existing instance (i.e. from a glade widget tree), which seems like a
bug to me.
Dave Cook
More information about the pygtk
mailing list