[pygtk] Implementing command history with a gtk.Entry
Paul Malherbe
paul at tartan.co.za
Tue Jul 25 02:45:03 WST 2006
N. French wrote:
> I have a class that packs a gtk.Entry with a gtk.TextView to make an
> interactive console. Works great but I would like to add a command
> history; when the user presses up or down I want to go modify the
> entry's text to whatever I have stored in the history.
>
> My problem is: how do I catch the up/down arrow keypresses? I was
> looking at the gtk.Entry "move-cursor" signal but it wasn't clear how I
> would distinguish an up or down arrow from left or right, or if this
> even catches cursor movement other than left and right.
>
> Any input is appreciated.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around =
> http://mail.yahoo.com =
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
> =
Hi
Here is a class I wrote which might help!
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RunPrg.py
Type: text/x-python
Size: 3252 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060724/cefd48e1/R=
unPrg-0001.py
More information about the pygtk
mailing list