X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c9126acc1db359eec23df77d1f244a1358d2673..68fc5c8025e38b9d827383fbfe7ce509ae331c1f:/wxPython/demo/MediaCtrl.py diff --git a/wxPython/demo/MediaCtrl.py b/wxPython/demo/MediaCtrl.py index 51f51ac4b2..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,7 +112,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())