Dun'kalis
01-21-2003, 06:15 PM
I'm learning wxPython, and its really good, but I'm wondering a few things.
I've got a text control, TextWindow.control, and I want to add an undo facility to it. I've got a menu function linked to the TextWindow.control.Undo() function (OnUndo()), but when I go to undo something, it doesn't work.
Another question:
I have a statusbar (TextWindow.CreateStatusBar()), and I want to send messages to it, so that I can display errors and such. How would I send text to it? I tried creating one by deriving a new class from wxStatusBar(TextWindow, -1), but it didn't allow me to do that for some reason.
Another more abstract question:
The program I'm writing is fairly simple right now, but I really think I should try and move member functions from TextWindow to other classes, so that I can use them elsewhere. What would be a good way to do this? I don't want specific implementation details, just an abstract.
I've got a text control, TextWindow.control, and I want to add an undo facility to it. I've got a menu function linked to the TextWindow.control.Undo() function (OnUndo()), but when I go to undo something, it doesn't work.
Another question:
I have a statusbar (TextWindow.CreateStatusBar()), and I want to send messages to it, so that I can display errors and such. How would I send text to it? I tried creating one by deriving a new class from wxStatusBar(TextWindow, -1), but it didn't allow me to do that for some reason.
Another more abstract question:
The program I'm writing is fairly simple right now, but I really think I should try and move member functions from TextWindow to other classes, so that I can use them elsewhere. What would be a good way to do this? I don't want specific implementation details, just an abstract.