Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def test_dialog2(self):
     # without parent
     dlg = sc.SizedDialog(None, title='World')
     self.runDialog(dlg)
Exemplo n.º 3
0
 def test_dialog1(self):
     # with parent
     dlg = sc.SizedDialog(self.frame, title='Hello')
     self.runDialog(dlg)