mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class mdi_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_mdiParentFrame1(self):
|
|
f = wx.MDIParentFrame(None, title="MDI Parent")
|
|
f.Close()
|
|
|
|
def test_mdiParentFrame2(self):
|
|
f = wx.MDIParentFrame()
|
|
f.Create(None, title="MDI Parent")
|
|
f.Close()
|
|
|
|
def test_mdiClientWindow(self):
|
|
f = wx.MDIParentFrame(None, title="MDI Parent")
|
|
cw = f.GetClientWindow()
|
|
self.assertTrue(isinstance(cw, wx.MDIClientWindow))
|
|
f.Close()
|
|
|
|
|
|
def test_mdiChildFrame1(self):
|
|
f = wx.MDIParentFrame(None, title="MDI Parent")
|
|
f.SetMenuBar(wx.MenuBar())
|
|
c = wx.MDIChildFrame(f, title="MDI Child")
|
|
f.Close()
|
|
|
|
def test_mdiChildFrame2(self):
|
|
f = wx.MDIParentFrame(None, title="MDI Parent")
|
|
f.SetMenuBar(wx.MenuBar())
|
|
c = wx.MDIChildFrame()
|
|
c.Create(f, title="MDI Child")
|
|
f.Close()
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|