]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/ticker.py
Migate to the new wxRendererNative::DrawItemSelectionRect function where available...
[wxWidgets.git] / wxPython / wx / lib / ticker.py
index 927d98082e7c784eebe56c6c5151d90d954b4b79..869e45aef421d75d3cca6654955dcb3d420bea56 100644 (file)
@@ -50,7 +50,7 @@ class Ticker(wx.PyControl):
         self._ppf = ppf  #pixels per frame
         self.SetDirection(direction)
         self.SetText(text)
         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)
         self.SetForegroundColour(fgcolor)
         self.SetBackgroundColour(bgcolor)
         wx.EVT_TIMER(self, -1, self.OnTick)