]> git.saurik.com Git - wxWidgets.git/commitdiff
misc
authorRobin Dunn <robin@alldunn.com>
Wed, 2 Feb 2005 22:36:36 +0000 (22:36 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 2 Feb 2005 22:36:36 +0000 (22:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Main.py
wxPython/demo/MediaCtrl.py

index a31707912be8faaca1f691e0aab7b0be1900eef7..ab5e8d6612869836a5b55099635776ee243a1b50 100644 (file)
@@ -318,7 +318,7 @@ class MessagePanel(wx.Panel):
         box.Add((10,10), 2)
 
         self.SetSizer(box)
-        
+        self.Fit()
         
 
 #---------------------------------------------------------------------------
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)