]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/MediaCtrl.py
HandlePrintClient shouldn't go above a top-level window
[wxWidgets.git] / wxPython / demo / MediaCtrl.py
index 24f333507de9dd43929b8ec7cb93d7c6e804d52a..fe9cb74185453a86b24e53bea6ebb679d9f9509f 100644 (file)
@@ -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)