X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cccce1a6e7cbaab4ba1dc3e039753bdd9bef40e0..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/demo/Ticker.py diff --git a/wxPython/demo/Ticker.py b/wxPython/demo/Ticker.py index 1346996b5d..8eb01f7842 100644 --- a/wxPython/demo/Ticker.py +++ b/wxPython/demo/Ticker.py @@ -77,6 +77,8 @@ class TestPanel(wx.Panel): 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) @@ -123,6 +125,11 @@ class TestPanel(wx.Panel): def ChangePPF(self, evt): self.ticker.SetPPF(evt.GetPosition()) + + def ShutdownDemo(self): + self.ticker.Stop() + + #---------------------------------------------------------------------- def runTest(frame, nb, log):