List Info

Thread: Re: Newbie has a statusbar problem




Re: Newbie has a statusbar problem
country flaguser name
United States
2007-11-05 12:46:52
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!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )