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
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
#----------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user