Markus von Ehr wrote:
Hi eveybody out there,
I use the MDISash demo and want to place a notebook on the left
side in the Sash Frame. The controls I place in the notebook
don't give me an event, here exemplarily shown with a button.
What am I doing wrong?
I don't know, but it works if I add a notebook to one of the wxSashLayoutWindows in the MDISashDemo.py module of the demo. Try it there and then compare to what you are (or are not) doing. Add the following after "self.leftWindow2 = win"
nb = wxNotebook(win, -1)
p = wxPanel(nb, -1)
b = wxButton(p, -1, "A Button", pos=(15,15))
EVT_BUTTON(self, b.GetId(), self.OnButton)
nb.AddPage(p, "Test")
def OnButton(self, evt):
print "OnButton"
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!