Package wx :: Package lib :: Module ticker :: Class Ticker

[frames | no frames]

## Type Ticker

    object --+
             |
        Object --+
                 |
        EvtHandler --+
                     |
                Window --+
                         |
                   Control --+
                             |
                     PyControl --+
                                 |
                                Ticker

Method Summary
| `__init__(self, parent, id, text, fgcolor, bgcolor, start, ppf, fps, direction, pos, size, style, name)`
| ``AcceptsFocus`(self)` Non-interactive, so don't accept focus
| ``DoGetBestSize`(self)` Width we don't care about, height is either -1, or the character height of our text with a little extra padding
| ``DrawText`(self, dc)` Draws the ticker text at the current offset using the provided DC
| `GetDirection(self)`
| ``GetFPS`(self)` Update speed of the ticker
| ``GetPPF`(self)` Pixels per frame
| `GetText(self)`
| ``IsTicking`(self)` Is the ticker ticking? ie, is the text moving?
| ``OnErase`(self, evt)` Noop because of double buffering
| `OnPaint(self, evt)`
| `OnTick(self, evt)`
| ``SetDirection`(self, dir)` Sets the direction of the ticker: right to left(rtl) or left to right (ltr)
| `SetFont(self, font)`
| ``SetFPS`(self, fps)` Adjust the update speed of the ticker
| ``SetPPF`(self, ppf)` Set the number of pixels per frame the ticker moves - ie, how "jumpy" it is
| ``SetText`(self, text)` Set the ticker text.
| ``ShouldInheritColours`(self)` Don't get colours from our parent...
| ``Start`(self)` Starts the text moving
| ``Stop`(self)` Stop moving the text
| ``UpdateExtent`(self, dc)` Updates the cached text extent if needed

Property Summary

Instance Method Details

### AcceptsFocus(self)

Non-interactive, so don't accept focus

  Overrides:
    `wx.Window.AcceptsFocus`

### DoGetBestSize(self)

Width we don't care about, height is either -1, or the character height of our text with a little extra padding

  Overrides:
    `wx.PyControl.DoGetBestSize`

### DrawText(self, dc)

Draws the ticker text at the current offset using the provided DC

### GetFPS(self)

Update speed of the ticker

### GetPPF(self)

Pixels per frame

### IsTicking(self)

Is the ticker ticking? ie, is the text moving?

### OnErase(self, evt)

Noop because of double buffering

### SetDirection(self, dir)

Sets the direction of the ticker: right to left(rtl) or left to right (ltr)

### SetFPS(self, fps)

Adjust the update speed of the ticker

### SetPPF(self, ppf)

Set the number of pixels per frame the ticker moves - ie, how "jumpy" it is

### SetText(self, text)

Set the ticker text.

### ShouldInheritColours(self)

Don't get colours from our parent...

  Overrides:
    `wx.Window.ShouldInheritColours`

### Start(self)

Starts the text moving

### Stop(self)

Stop moving the text

### UpdateExtent(self, dc)

Updates the cached text extent if needed

Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:07:08 2007 | http://epydoc.sf.net