parameters: (self, dc)
docstring: Draws the ticker text at the current offset using the provided DC
docstring_summary: Draws the ticker text at the current offset using the provided DC
docstring_tokens: Draws the ticker text at the current offset using the provided DC
function: def DrawText(self, dc):
          """Draws the ticker text at the current offset using the provided DC"""
          dc.SetTextForeground(self.GetForegroundColour())
          dc.SetFont(self.GetFont())
          self.UpdateExtent(dc)
          if self._dir == "ltr":
              offx = self._offset - self._extent[0]
          else:
              offx = self.GetSize()[0] - self._offset
          offy = (self.GetSize()[1] - self._extent[1]) / 2 #centered vertically
          dc.DrawText(self._text, offx, offy)
function_tokens: def DrawText ( self , dc ) : dc . SetTextForeground ( self . GetForegroundColour ( ) ) dc . SetFont ( self . GetFont ( ) ) self . UpdateExtent ( dc ) if self . _dir == "ltr" : offx = self . _offset - self . _extent [ 0 ] else : offx = self . GetSize ( ) [ 0 ] - self . _offset offy = ( self . GetSize ( ) [ 1 ] - self . _extent [ 1 ] ) / 2 #centered vertically dc . DrawText ( self . _text , offx , offy )