def test_dialogTextSizer(self): dlg = sc.SizedDialog(self.frame, title='Hello') s = dlg.CreateTextSizer( "This is a test.\nThis is only a test.\nHello World") self.assertTrue(isinstance(s, wx.Sizer)) self.assertTrue(len(s.Children) == 3) self.runDialog(dlg)
def test_dialog2(self): # without parent dlg = sc.SizedDialog(None, title='World') self.runDialog(dlg)
def test_dialog1(self): # with parent dlg = sc.SizedDialog(self.frame, title='Hello') self.runDialog(dlg)