Adjust control size after Play
authorRobin Dunn <robin@alldunn.com>
Mon, 10 Jul 2006 17:02:25 +0000 (17:02 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 10 Jul 2006 17:02:25 +0000 (17:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/MediaCtrl.py

index 9fd988fc5888cd3a3db394d120db115626a00309..51f51ac4b285920fc611076f525d0d84d6d86f81 100644 (file)
@@ -108,6 +108,8 @@ class TestPanel(wx.Panel):
                           "ERROR",
                           wx.ICON_ERROR | wx.OK)
         else:
+            self.mc.SetBestFittingSize()
+            self.GetSizer().Layout()
             self.slider.SetRange(0, self.mc.Length())
 
     def OnPause(self, evt):