]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Ticker.py
Fix "warning: operation on 'y' may be undefined".
[wxWidgets.git] / wxPython / demo / Ticker.py
index 1346996b5df40f80130b62a13b4c66e24cd2e639..8eb01f784224a544c3390638dcc8395af152ea1b 100644 (file)
@@ -77,6 +77,8 @@ class TestPanel(wx.Panel):
         self.SetTickDirection("rtl")
         self.SetTickFont(self.ticker.GetFont())
         self.ticker.SetText(self.txt.GetValue())
         self.SetTickDirection("rtl")
         self.SetTickFont(self.ticker.GetFont())
         self.ticker.SetText(self.txt.GetValue())
+
+        
     def SetTickFont(self, font):
         """Sets ticker font, updates label"""
         self.ticker.SetFont(font)
     def SetTickFont(self, font):
         """Sets ticker font, updates label"""
         self.ticker.SetFont(font)
@@ -123,6 +125,11 @@ class TestPanel(wx.Panel):
     def ChangePPF(self, evt):
         self.ticker.SetPPF(evt.GetPosition())
 
     def ChangePPF(self, evt):
         self.ticker.SetPPF(evt.GetPosition())
 
+
+    def ShutdownDemo(self):
+        self.ticker.Stop()
+
+        
 #----------------------------------------------------------------------
 
 def runTest(frame, nb, log):
 #----------------------------------------------------------------------
 
 def runTest(frame, nb, log):