I'm trying to add elements to the GUI, but after Mainloop() has been called I
can't. How can I get around this?
Thanks
I'm trying to add elements to the GUI, but after Mainloop() has been called I
can't. How can I get around this?
Thanks
Jacob,
Jacob Ward wrote:
I'm trying to add elements to the GUI, but after Mainloop() has been called I
can't. How can I get around this?Thanks
I suggest you get a look at: http://wiki.wxpython.org/Getting Started
Mathias
dinamically?
2008/10/17 Jacob Ward ward.jake@gmail.com
I’m trying to add elements to the GUI, but after Mainloop() has been called I
can’t. How can I get around this?
Thanks
wxpython-users mailing list
–
Saludos / Best regards
Mario Lacunza
Consultor de Sistemas - Webmaster
Email: mlacunza [AT] gmail [DOT] com
Lima - Peru
Mario Lacunza wrote:
I'm trying to add elements to the GUI, but after Mainloop() has been
called I can't. How can I get around this?
Anything you want done after you call MainLoop() has to be done in an event handler.
So, either:
Build up the whole GUI before calling mainloop: in your mainframe __init__, and everything it calls, for instance.
Or, have the additional parts of the GUI be built as the result of various events -- clicking on a button, etc.
Which makes sense depends on the needs of your app.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov