X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6660ffabcb9d9ce962069ab7f59a9c282d45153..b843b628c9f936d6a87ca1e9b91e88a4604270c4:/wxPython/demo/MediaCtrl.py diff --git a/wxPython/demo/MediaCtrl.py b/wxPython/demo/MediaCtrl.py index 24f333507d..fe9cb74185 100644 --- a/wxPython/demo/MediaCtrl.py +++ b/wxPython/demo/MediaCtrl.py @@ -14,7 +14,11 @@ class TestPanel(wx.Panel): style=wx.TAB_TRAVERSAL|wx.CLIP_CHILDREN) # Create some controls - self.mc = wx.media.MediaCtrl(self, style=wx.SIMPLE_BORDER) + try: + self.mc = wx.media.MediaCtrl(self, style=wx.SIMPLE_BORDER) + except NotImplementedError: + self.Destroy() + raise btn1 = wx.Button(self, -1, "Load File") self.Bind(wx.EVT_BUTTON, self.OnLoadFile, btn1)