Hello i have some problem with a simple app i created. I have i panel class
(class middle_panel) and i created wigets on it. After that i created a
frame (class Version_class) but know i want to bind events of widgets from
the middle_panel class to the (class version_class). How can i do that
···
--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/I-created-a-panel-with-widgets-on-it-how-can-i-Bind-them-on-the-Frame-i-created-rather-than-on-the-ps-tp5714104.html
Sent from the wxPython-users mailing list archive at Nabble.com.
You really shouldn’t bind events in one panel to the frame. I would recommend just using pubsub as it’s much cleaner. However, you can pass a reference of the frame to the panel and bind it that way or grab the frame using something like wx.GetParent() or wx.GetTopParent().
···
On Thursday, July 26, 2012 4:40:38 AM UTC-5, want_learn1 wrote:
Hello i have some problem with a simple app i created. I have i panel class
(class middle_panel) and i created wigets on it. After that i created a
frame (class Version_class) but know i want to bind events of widgets from
the middle_panel class to the (class version_class). How can i do that