- self.SetText(sampleText)
-
-class TestFrame(wx.Frame):
- def __init__(self, parent, log):
- wx.Frame.__init__(self, parent, -1, "Multi Sash Demo", size=(640,480))
- self.multi = sash.wxMultiSash(self,-1,pos=(0,0), size=(640,480))
-
- # Use this method to set the default class that will be created when
- # a new sash is created. The class's constructor needs 1 parameter
- # which is the parent of the window
- self.multi.SetDefaultChildClass(TestWindow)
+ if self.doc:
+ self.SetDocPointer(self.doc)
+ else:
+ self.SetText(sampleText)
+ TestWindow.doc = self.GetDocPointer()
+