Search code examples
pythonpython-2.7wxpython

wxpython shell enable uparrow to retrieve commands


I am using Shell from wx.py.shell, it is working good. But how do I enable the Python prompt like up arrow key feature. When I use arrow key inside shell, cursor goes up and down, while I want it to step through the last commands.

I see from doc that http://www.wxpython.org/docs/api/wx.py.shell.Shell-class.html#OnHistoryInsert, it does keep track of history but how to enable it to retrieve with arrow keys?


Solution

  • Use Ctrl-arrow. The F1 key will show you some of the other special key bindings.