X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ddba849c383b8a610ca0b3fd4df5ca8e64ca7242..68fc5c8025e38b9d827383fbfe7ce509ae331c1f:/wxPython/demo/MediaCtrl.py diff --git a/wxPython/demo/MediaCtrl.py b/wxPython/demo/MediaCtrl.py index 9fd988fc58..1a774ed81c 100644 --- a/wxPython/demo/MediaCtrl.py +++ b/wxPython/demo/MediaCtrl.py @@ -25,7 +25,11 @@ class TestPanel(wx.Panel): # Create some controls try: - self.mc = wx.media.MediaCtrl(self, style=wx.SIMPLE_BORDER) + self.mc = wx.media.MediaCtrl(self, style=wx.SIMPLE_BORDER, + #szBackend=wx.media.MEDIABACKEND_DIRECTSHOW + #szBackend=wx.media.MEDIABACKEND_QUICKTIME + #szBackend=wx.media.MEDIABACKEND_WMP10 + ) except NotImplementedError: self.Destroy() raise @@ -95,7 +99,7 @@ class TestPanel(wx.Panel): "ERROR", wx.ICON_ERROR | wx.OK) else: - self.mc.SetBestFittingSize() + self.mc.SetInitialSize() self.GetSizer().Layout() self.slider.SetRange(0, self.mc.Length()) @@ -108,6 +112,8 @@ class TestPanel(wx.Panel): "ERROR", wx.ICON_ERROR | wx.OK) else: + self.mc.SetInitialSize() + self.GetSizer().Layout() self.slider.SetRange(0, self.mc.Length()) def OnPause(self, evt):