Package wx :: Package lib :: Module analogclock :: Class AnalogClockWindow
[frames | no frames]

Type AnalogClockWindow

object --+                
         |                
    Object --+            
             |            
    EvtHandler --+        
                 |        
            Window --+    
                     |    
              PyWindow --+
                         |
                        AnalogClockWindow


An analog clock window
Method Summary
  __init__(self, parent, ID, pos, size, style, name)
  DoGetBestSize(self)
  OnPaint(self, event)
  OnPopupOne(self, event)
  OnPopupTwo(self, event)
  OnQuit(self, event)
  OnRightClick(self, event)
  OnRightDown(self, event)
  OnSize(self, event)
  OnTimerExpire(self, event)
  SetClockStyle(self, style)
Set the clock style, acording to these options:
  SetHandColours(self, h, m, s)
h, m, s: wx.Colour
  SetHandWeights(self, h, m, s)
h, m, s: value
  SetMinutesOffset(self, o)
s = value
  SetShadowColour(self, s)
s = wx.Colour or (r,g,b) tuple.
  SetTickColours(self, h, m)
h, m: wx.Colour
  SetTickFonts(self, h, m)
h, m: wx.Font
  SetTickShapes(self, tsh, tsm)
tsh, tsm: [[x0,y0], [x1,y1], ...
  SetTickSizes(self, h, m)
h, m: value
  SetTickStyles(self, h, m)
Set the ticks styles, acording to the options below.
  SetWatchPenBrush(self, p, b)
p = wx.Pen; b = wx.Brush

Instance Method Details

SetClockStyle(self, style)

Set the clock style, acording to these options:

SHOW_QUARTERS_TICKS Show marks for hours 3, 6, 9, 12
SHOW_HOURS_TICKS Show marks for all hours
SHOW_MINUTES_TICKS Show marks for minutes
SHOW_HOURS_HAND Show hours hand
SHOW_MINUTES_HAND Show minutes hand
SHOW_SECONDS_HAND Show seconds hand
SHOW_SHADOWS Show hands and marks shadows
ROTATE_TICKS Align tick marks to watch
OVERLAP_TICKS Draw tick marks for minutes even when they match the hours marks.

SetHandColours(self, h=None, m=None, s=None)

h, m, s: wx.Colour

Sets colours of hands. If m and s are ommitted, we'll use h for all.

SetHandWeights(self, h=None, m=None, s=None)

h, m, s: value

Sets thickness of hands.

SetMinutesOffset(self, o)

s = value

Sets the distance between tick marks for hours and minutes.

SetShadowColour(self, s)

s = wx.Colour or (r,g,b) tuple.

Sets the colour to be used to draw shadows.

SetTickColours(self, h=None, m=None)

h, m: wx.Colour

Sets colours of ticks. If m is ommitted, we'll use h for both.

SetTickFonts(self, h=None, m=None)

h, m: wx.Font

Fonts for tick marks when using TICKS_DECIMAL or TICKS_ROMAN style. If m is ommitted, we'll use h for both.

SetTickShapes(self, tsh, tsm=None)

tsh, tsm: [[x0,y0], [x1,y1], ... [xn,yn]]

Sets lists of lists of points to be used as polygon shapes when using the TICKS_POLY style. If tsm is ommitted, we'll use tsh for both shapes.

SetTickSizes(self, h=None, m=None)

h, m: value

Sizes for tick marks.

SetTickStyles(self, h=None, m=None)

Set the ticks styles, acording to the options below.

TICKS_NONE Don't show tick marks.
TICKS_SQUARE Use squares as tick marks.
TICKS_CIRCLE Use circles as tick marks.
TICKS_POLY Use a polygon as tick marks. The polygon must be passed using SetTickShapes, otherwise the default polygon will be used.
TICKS_DECIMAL Use decimal numbers.
TICKS_ROMAN Use Roman numbers.

SetWatchPenBrush(self, p=None, b=None)

p = wx.Pen; b = wx.Brush

Set the pen and brush for the watch.


Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:23:28 2005 http://epydoc.sf.net