wx.lib.analogclock.analogclock.AnalogClock¶
An analog clock.
Class Hierarchy¶
Known Subclasses¶
wx.lib.analogclock.analogclock.AnalogClockWindow
Known Superclasses¶
Methods Summary¶
Initialize self. See help(type(self)) for accurate signature. |
|
DoGetBestSize() -> Size |
|
Returns the current clock style. |
|
Gets border colours of watch. |
|
Gets border width of watch. |
|
Gets fill colours of watch. |
|
Gets border colours of hands. |
|
Gets border widths of hands. |
|
Gets fill colours of hands. |
|
Gets thickness of hands. |
|
Gets the colour to be used to draw shadows. |
|
Gets border colours of ticks. |
|
Gets border widths of ticks. |
|
Gets fill colours of ticks. |
|
Gets fonts for tick marks when using TICKS_DECIMAL or |
|
Gets the distance of tick marks for hours from border. |
|
Gets lists of points to be used as polygon shapes |
|
Gets sizes of ticks. |
|
Gets the tick style(s). |
|
Forces an immediate recalculation and redraw of all clock |
|
Overridden base wx.Window method. |
|
Set the clock style, according to the options below. |
|
Sets border colours of watch. |
|
Sets border width of watch. |
|
Sets fill colours of watch. |
|
Overridden base wx.Window method. This method sets a colour for |
|
Sets border colours of hands. |
|
Sets border widths of hands. |
|
Sets fill colours of hands. |
|
Sets thickness of hands. |
|
Sets the colour to be used to draw shadows. |
|
Sets border colours of ticks. |
|
Sets border widths of ticks. |
|
Sets fill colours of ticks. |
|
Sets fonts for tick marks when using text-based tick styles |
|
Sets the distance of tick marks for hours from border. |
|
Sets lists of points to be used as polygon shapes |
|
Sets sizes of ticks. |
|
Set the tick style, according to the options below. |
|
Overridden base wx.Window method. |
|
Overridden base wx.Window method. |
Class API¶
- class AnalogClock(wx.Window)¶
An analog clock.
Methods¶
- __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.NO_BORDER, name='AnalogClock', clockStyle=DEFAULT_CLOCK_STYLE, minutesStyle=TICKS_CIRCLE, hoursStyle=TICKS_POLY)¶
Initialize self. See help(type(self)) for accurate signature.
- DoGetBestSize(self)¶
DoGetBestSize() -> Size
Implementation of GetBestSize() that can be overridden.
- 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=ALL)¶
Gets border colours of hands.
- GetHandBorderWidth(self, target=ALL)¶
Gets border widths of hands.
- GetHandFillColour(self, target=ALL)¶
Gets fill colours of hands.
- GetHandSize(self, target=ALL)¶
Gets thickness of hands.
- GetShadowColour(self)¶
Gets the colour to be used to draw shadows.
- GetTickBorderColour(self, target=ALL)¶
Gets border colours of ticks.
- GetTickBorderWidth(self, target=ALL)¶
Gets border widths of ticks.
- GetTickFillColour(self, target=ALL)¶
Gets fill colours of ticks.
- GetTickFont(self, target=ALL)¶
Gets fonts for tick marks when using TICKS_DECIMAL or TICKS_ROMAN style.
- GetTickOffset(self, target=ALL)¶
Gets the distance of tick marks for hours from border.
- GetTickPolygon(self, target=ALL)¶
Gets lists of points to be used as polygon shapes when using the TICKS_POLY style.
- GetTickSize(self, target=ALL)¶
Gets sizes of ticks.
- GetTickStyle(self, target=ALL)¶
Gets the tick style(s).
- Reset(self)¶
Forces an immediate recalculation and redraw of all clock elements.
- SetBackgroundColour(self, colour)¶
Overridden base wx.Window method.
- 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)¶
Overridden base wx.Window method. This method sets a colour for all hands and ticks at once.
- SetHandBorderColour(self, colour, target=ALL)¶
Sets border colours of hands.
- SetHandBorderWidth(self, width, target=ALL)¶
Sets border widths of hands.
- SetHandFillColour(self, colour, target=ALL)¶
Sets fill colours of hands.
- SetHandSize(self, size, target=ALL)¶
Sets thickness of hands.
- SetShadowColour(self, colour)¶
Sets the colour to be used to draw shadows.
- SetTickBorderColour(self, colour, target=ALL)¶
Sets border colours of ticks.
- SetTickBorderWidth(self, width, target=ALL)¶
Sets border widths of ticks.
- SetTickFillColour(self, colour, target=ALL)¶
Sets fill colours of ticks.
- SetTickFont(self, font, target=ALL)¶
Sets fonts for tick marks when using text-based tick styles such as TICKS_DECIMAL or TICKS_ROMAN.
- SetTickOffset(self, offset, target=ALL)¶
Sets the distance of tick marks for hours from border.
- SetTickPolygon(self, polygon, target=ALL)¶
Sets lists of points to be used as polygon shapes when using the TICKS_POLY style.
- SetTickSize(self, size, target=ALL)¶
Sets sizes of ticks.
- SetTickStyle(self, style, target=ALL)¶
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)¶
Overridden base wx.Window method.
- SetWindowStyleFlag(self, \*args, \*\*kwargs)¶
Overridden base wx.Window method.