X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cccce1a6e7cbaab4ba1dc3e039753bdd9bef40e0..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/wx/lib/ticker.py diff --git a/wxPython/wx/lib/ticker.py b/wxPython/wx/lib/ticker.py index d13a945548..869e45aef4 100644 --- a/wxPython/wx/lib/ticker.py +++ b/wxPython/wx/lib/ticker.py @@ -12,12 +12,16 @@ """News-ticker style scrolling text control - Can scroll from right to left or left to right. - Speed of the ticking is controlled by two parameters: - Frames per Second(FPS): How many times per second the ticker updates - Pixels per Frame(PPF): How many pixels the text moves each update - Low FPS with high PPF will result in "jumpy" text, lower PPF with higher FPS - is smoother (but blurrier and more CPU intensive) text. + * Can scroll from right to left or left to right. + + * Speed of the ticking is controlled by two parameters: + + - Frames per Second(FPS): How many times per second the ticker updates + + - Pixels per Frame(PPF): How many pixels the text moves each update + +Low FPS with high PPF will result in "jumpy" text, lower PPF with higher FPS +is smoother (but blurrier and more CPU intensive) text. """ import wx @@ -46,7 +50,7 @@ class Ticker(wx.PyControl): self._ppf = ppf #pixels per frame self.SetDirection(direction) self.SetText(text) - self.SetBestFittingSize(size) + self.SetInitialSize(size) self.SetForegroundColour(fgcolor) self.SetBackgroundColour(bgcolor) wx.EVT_TIMER(self, -1, self.OnTick)