X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6660ffabcb9d9ce962069ab7f59a9c282d45153..6a52ea5cb81dcd07c286d34b80945534780fe05f:/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)