Click to See Complete Forum and Search --> : wxPython


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.

Dun'kalis
01-22-2003, 05:26 PM
OK, I finally got my status bar to appear, but its weird...I can't really explain it. It is a really small rectangular box, and it just sits there in the upper left-hand corner of the text control...weird.

Anyway, I'm really curious about how to properly design a program so I can manage it when it becomes larger. Any ideas?

Dun'kalis
01-23-2003, 07:17 PM
If you know wxPython or wxWindows (I know C++), please, feel free to assist me.