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

Type AnalogClock

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

Known Subclasses:
AnalogClockWindow

An analog clock.


Method Summary
  __init__(self, parent, id, pos, size, style, name, clockStyle, minutesStyle, hoursStyle)
  DoGetBestSize(self)
  GetClockStyle(self)
Returns the current clock style.
  GetFaceBorderColour(self)
Gets border colours of watch.
  GetFaceBorderWidth(self)
Gets border width of watch.
  GetFaceFillColour(self)
Gets fill colours of watch.
  GetHandBorderColour(self, target)
Gets border colours of hands.
  GetHandBorderWidth(self, target)
Gets border widths of hands.
  GetHandFillColour(self, target)
Gets fill colours of hands.
  GetHandSize(self, target)
Gets thickness of hands.
  GetShadowColour(self)
Gets the colour to be used to draw shadows.
  GetTickBorderColour(self, target)
Gets border colours of ticks.
  GetTickBorderWidth(self, target)
Gets border widths of ticks.
  GetTickFillColour(self, target)
Gets fill colours of ticks.
  GetTickFont(self, target)
Gets fonts for tick marks when using TICKS_DECIMAL or TICKS_ROMAN style.
  GetTickOffset(self, target)
Gets the distance of tick marks for hours from border.
  GetTickPolygon(self, target)
Gets lists of points to be used as polygon shapes when using the TICKS_POLY style.
  GetTickSize(self, target)
Gets sizes of ticks.
  GetTickStyle(self, target)
Gets the tick style(s).
  Reset(self)
Forces an immediate recalculation and redraw of all clock elements.
  SetBackgroundColour(self, colour)
Overriden base wx.Window method.
  SetClockStyle(self, style)
Set the clock style, according to the options below.
  SetFaceBorderColour(self, colour)
Sets border colours of watch.
  SetFaceBorderWidth(self, width)
Sets border width of watch.
  SetFaceFillColour(self, colour)
Sets fill colours of watch.
  SetForegroundColour(self, colour)
Overriden base wx.Window method.
  SetHandBorderColour(self, colour, target)
Sets border colours of hands.
  SetHandBorderWidth(self, width, target)
Sets border widths of hands.
  SetHandFillColour(self, colour, target)
Sets fill colours of hands.
  SetHandSize(self, size, target)
Sets thickness of hands.
  SetShadowColour(self, colour)
Sets the colour to be used to draw shadows.
  SetTickBorderColour(self, colour, target)
Sets border colours of ticks.
  SetTickBorderWidth(self, width, target)
Sets border widths of ticks.
  SetTickFillColour(self, colour, target)
Sets fill colours of ticks.
  SetTickFont(self, font, target)
Sets fonts for tick marks when using text-based tick styles such as TICKS_DECIMAL or TICKS_ROMAN.
  SetTickOffset(self, offset, target)
Sets the distance of tick marks for hours from border.
  SetTickPolygon(self, polygon, target)
Sets lists of points to be used as polygon shapes when using the TICKS_POLY style.
  SetTickSize(self, size, target)
Sets sizes of ticks.
  SetTickStyle(self, style, target)
Set the tick style, according to the options below.
  SetWindowStyle(self, *args, **kwargs)
Overriden base wx.Window method.
  SetWindowStyleFlag(self, *args, **kwargs)
Overriden base wx.Window method.

Property Summary

Instance Method Details

GetClockStyle(self)

Returns the current clock style.

GetFaceBorderColour(self)

Gets border colours of watch.

GetFaceBorderWidth(self)

Gets border width of watch.

GetFaceFillColour(self)

Gets fill colours of watch.

GetHandBorderColour(self, target=7)

Gets border colours of hands.

GetHandBorderWidth(self, target=7)

Gets border widths of hands.

GetHandFillColour(self, target=7)

Gets fill colours of hands.

GetHandSize(self, target=7)

Gets thickness of hands.

GetShadowColour(self)

Gets the colour to be used to draw shadows.

GetTickBorderColour(self, target=7)

Gets border colours of ticks.

GetTickBorderWidth(self, target=7)

Gets border widths of ticks.

GetTickFillColour(self, target=7)

Gets fill colours of ticks.

GetTickFont(self, target=7)

Gets fonts for tick marks when using TICKS_DECIMAL or TICKS_ROMAN style.

GetTickOffset(self, target=7)

Gets the distance of tick marks for hours from border.

GetTickPolygon(self, target=7)

Gets lists of points to be used as polygon shapes when using the TICKS_POLY style.

GetTickSize(self, target=7)

Gets sizes of ticks.

GetTickStyle(self, target=7)

Gets the tick style(s).

Reset(self)

Forces an immediate recalculation and redraw of all clock elements.

SetBackgroundColour(self, colour)

Overriden base wx.Window method.

Overrides:
wx.Window.SetBackgroundColour

SetClockStyle(self, style)

Set the clock style, according to the options below.

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.

SetFaceBorderColour(self, colour)

Sets border colours of watch.

SetFaceBorderWidth(self, width)

Sets border width of watch.

SetFaceFillColour(self, colour)

Sets fill colours of watch.

SetForegroundColour(self, colour)

Overriden base wx.Window method. This method sets a colour for all hands and ticks at once.

Overrides:
wx.Window.SetForegroundColour

SetHandBorderColour(self, colour, target=7)

Sets border colours of hands.

SetHandBorderWidth(self, width, target=7)

Sets border widths of hands.

SetHandFillColour(self, colour, target=7)

Sets fill colours of hands.

SetHandSize(self, size, target=7)

Sets thickness of hands.

SetShadowColour(self, colour)

Sets the colour to be used to draw shadows.

SetTickBorderColour(self, colour, target=7)

Sets border colours of ticks.

SetTickBorderWidth(self, width, target=7)

Sets border widths of ticks.

SetTickFillColour(self, colour, target=7)

Sets fill colours of ticks.

SetTickFont(self, font, target=7)

Sets fonts for tick marks when using text-based tick styles such as TICKS_DECIMAL or TICKS_ROMAN.

SetTickOffset(self, offset, target=7)

Sets the distance of tick marks for hours from border.

SetTickPolygon(self, polygon, target=7)

Sets lists of points to be used as polygon shapes when using the TICKS_POLY style.

SetTickSize(self, size, target=7)

Sets sizes of ticks.

SetTickStyle(self, style, target=7)

Set the tick style, according 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. A polygon can be passed using SetTickPolygon, otherwise the default polygon will be used.
TICKS_DECIMAL Use decimal numbers as tick marks.
TICKS_ROMAN Use Roman numbers as tick marks.
TICKS_BINARY Use binary numbers as tick marks.
TICKS_HEX Use hexadecimal numbers as tick marks.

SetWindowStyle(self, *args, **kwargs)

Overriden base wx.Window method.

Overrides:
wx.Window.SetWindowStyleFlag

SetWindowStyleFlag(self, *args, **kwargs)

Overriden base wx.Window method.

Overrides:
wx.Window.SetWindowStyleFlag

Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:11:59 2007 http://epydoc.sf.net