Skip to content

Commit

Permalink
Add missing Restore() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinD42 committed Nov 30, 2016
1 parent c524ed1 commit e4bd913
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ext/wxWidgets
27 changes: 19 additions & 8 deletions unittests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def test_frameStyles(self):
wx.FRAME_TOOL_WINDOW
wx.FRAME_FLOAT_ON_PARENT
wx.FRAME_SHAPED


def test_frameCtors(self):
f = wx.Frame(None)
f.Show()
Expand All @@ -34,8 +34,8 @@ def test_frameTopLevelTweaks(self):
f.Show()
f.MacGetTopLevelWindowRef()
f.Close()


def test_frameProperties(self):
f = wx.Frame(None)
f.Show()
Expand All @@ -46,11 +46,22 @@ def test_frameProperties(self):
f.TmpDefaultItem
f.OSXModified
f.MacMetalAppearance


f.Close()


def test_frameRestore(self):
f = wx.Frame(self.frame, title="Title", pos=(50,50), size=(100,100))
f.Show()
f.Maximize()
self.myYield()
assert f.IsMaximized()
f.Restore()
self.myYield()
assert not f.IsMaximized()
f.Close()





#---------------------------------------------------------------------------


Expand Down

0 comments on commit e4bd913

Please sign in to comment.