[Tutor] Undo/Redo in wxpython?
Alan Gauld
alan.gauld at btinternet.com
Sat Sep 8 09:50:40 CEST 2007
"Trey Keown" <trey at opmstech.org> wrote
> What is the proper way to undo/redo changes in a text box? I read
> somewhere that the default undo depth is 1. How could I change this
> to,
> say, about 35?
I dunno, its not in the book ;-)
But just typing dir(TextCtrl) showed those two methods...
Unfortunately there is no real help() info just tat they take
*args and **kwargs...
And trying it at the >>> prompt yields
t.Redo(35)
Traceback (most recent call last):
File "<input>", line 1, in ?
File
"C:\Python24\Lib\site-packages\wx-2.8-msw-ansi\wx\_controls.py", line
1888, in Redo
return _controls_.TextCtrl_Redo(*args, **kwargs)
TypeError: TextCtrl_Redo() takes exactly one argument (2 given)
So now you know where the code is and can go take a peek...
Or it might be one for the wxPython mailing list?
Alan G.
More information about the Tutor
mailing list