mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
43 lines
1.1 KiB
Python
43 lines
1.1 KiB
Python
import unittest
|
|
from unittests 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()
|