Regan Tackett wrote:
In the code below, I have created a panel with 2 radio buttons on it. When I
click and activate "Button 2", I would like to have a certain message appear on
the status bar. However, when the code is run, the message appears at the top
of the panel. I think my problem is that I'm setting the panel that I created
as the parent of the statusbar.
Actually, you are creating a *new* statusbar everytime you change the text, and the parent of that new statusbar is the panel.
However, I don't know (or have I ever saw an
example) how to pass the frame instance to the panel.
You already are passing it. It's the parent of the panel, right? So you can just use something like
self.GetParent().SetStatusText(text, position)
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!