Window pane buttons
Norberto Lopes
collector at mail.telepac.pt
Mon Feb 4 10:07:54 PST 2008
I have a vertical window pane.
1 | 2
In 1 I have another window pane, this time a horizontal one, as:
3
_
4
In window_pane_3 and window_pane_4 I have a label, a tree_ctrl and a
button, each.
In my code I have this for the buttons:
- self.Bind(wx.EVT_BUTTON, self.item_add_session, self.add_session_button)
for the button in window_pane_3
- self.Bind(wx.EVT_BUTTON, self.item_add_person, self.add_person_button)
for the button in window_pane_4
The thing is... When I press add_session_button (the button in
window_pane_3, item_add_person is called).
I can't find where I did the mistake, but this "workaround" works:
- self.window_pane_3.Bind(wx.EVT_BUTTON, self.item_add_session)
- self.window_pane_4.Bind(wx.EVT_BUTTON, self.item_add_person).
This won't work if I want more buttons in each of the window_panes, so
how do I solve this?
Thanks,
Norberto
More information about the wxpython-users
mailing list