I have written some scripts fashioned after the testNoteBook.py routines. However, when I select a tab, the child window opens but is not inside to the main window. The code is shown below:
class MFMNote(model.Background):
def on_initialize(self, event):
self.components.notebook.SetMinSize(self.size)
self.singleItemExpandingSizerLayout()
panel1 = wx.Panel(self.components.notebook, -1)
self.components.notebook.AddPage(panel1, 'test1', True)
panel2 = model.childWindow(self.components.notebook, test2note.test2)
self.components.notebook.AddPage(panel2, 'test2', True)
The testNotebook samples run fine.
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
-- Albert Einstein
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. |