]> git.saurik.com Git - wxWidgets.git/commitdiff
don't hide the log messages, and be sure to stop the timer when done
authorRobin Dunn <robin@alldunn.com>
Mon, 13 Feb 2006 19:19:39 +0000 (19:19 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 13 Feb 2006 19:19:39 +0000 (19:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/MediaCtrl.py

index 8b2797cf3c5c90f1519cc3b5df31e5b29db8b80e..9fd988fc5888cd3a3db394d120db115626a00309 100644 (file)
@@ -89,7 +89,7 @@ class TestPanel(wx.Panel):
 
     def DoLoadFile(self, path):
         self.playBtn.Disable()
-        noLog = wx.LogNull()
+        #noLog = wx.LogNull()
         if not self.mc.Load(path):
             wx.MessageBox("Unable to load %s: Unsupported format?" % path,
                           "ERROR",
@@ -128,6 +128,9 @@ class TestPanel(wx.Panel):
         self.st_len.SetLabel('length: %d seconds' % (self.mc.Length()/1000))
         self.st_pos.SetLabel('position: %d' % offset)
 
+    def ShutdownDemo(self):
+        self.timer.Stop()
+        del self.timer
 
 #----------------------------------------------------------------------