Files
Phoenix/unittests/test_mdi.py
Robin Dunn d755518068 Various test fixes for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-10 04:54:59 +00:00

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()