From a7593631f1639e3068e109686b07002d66a4639d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 2 Feb 2005 22:36:36 +0000 Subject: [PATCH] misc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/Main.py | 2 +- wxPython/demo/MediaCtrl.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index a31707912b..ab5e8d6612 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -318,7 +318,7 @@ class MessagePanel(wx.Panel): box.Add((10,10), 2) self.SetSizer(box) - + self.Fit() #--------------------------------------------------------------------------- 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)