X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bcdbe527fde583072eefab67de8974c0e17a1e2..d1bb3e121f109478099837e427a4636f156a9959:/wxPython/misc/widgetLayoutTest.py diff --git a/wxPython/misc/widgetLayoutTest.py b/wxPython/misc/widgetLayoutTest.py index 02a8a33695..32a9a4ce6d 100644 --- a/wxPython/misc/widgetLayoutTest.py +++ b/wxPython/misc/widgetLayoutTest.py @@ -273,8 +273,7 @@ class LayoutTestFrame(wx.Frame): # make the destroy button be default now self.destroyBtn.SetDefault() - - if True: + if False: print 'w size', w.GetSize() print 'w minsize', w.GetMinSize() print 'w bestsize', w.GetBestSize() @@ -293,7 +292,8 @@ class LayoutTestFrame(wx.Frame): self.testWidget.Destroy() self.testWidget = None self.testPanel.SetSizer(None, True) - + self.testPanel.Refresh() + # ensure the panel shrinks again self.testPanel.SetSizeHints((20,20)) self.bottomSizer.Layout()