wxPython, dynamically modify window
Bell, Kevin
kevin.bell at slcgov.com
Tue Dec 12 10:20:33 EST 2006
I think that you'll just need to change the frame size property when you
hit your checkbox...
-----Original Message-----
From: python-list-bounces+kevin.bell=slcgov.com at python.org
[mailto:python-list-bounces+kevin.bell=slcgov.com at python.org] On Behalf
Of Grant
Sent: Tuesday, December 12, 2006 12:02 AM
To: python-list at python.org
Subject: wxPython, dynamically modify window
Hi, I am looking for a tip. I have a panel and a checkbox. When I
check the checkbox, I would like to add buttons to the panel
(dynamically). When the checkbox is unchecked, the buttons should not
appear (be deleted)---all the while, the window should resize if
necessary.
If you have a simpler example, that is fine. I just need a hint as to
how you dynamically change the widgets and their layouts.
Looking at the wx demos, there is something close wx.lib.expando, but
this is just modifying a particular widget.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list