From ddba849c383b8a610ca0b3fd4df5ca8e64ca7242 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 13 Feb 2006 19:19:39 +0000 Subject: [PATCH] don't hide the log messages, and be sure to stop the timer when done git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/MediaCtrl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wxPython/demo/MediaCtrl.py b/wxPython/demo/MediaCtrl.py index 8b2797cf3c..9fd988fc58 100644 --- a/wxPython/demo/MediaCtrl.py +++ b/wxPython/demo/MediaCtrl.py @@ -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 #---------------------------------------------------------------------- -- 2.45.2