phoenix_title wx.lib.analogclock.analogclock.AnalogClock

An analog clock.


class_hierarchy Class Hierarchy

Inheritance diagram for class AnalogClock:

sub_classes Known Subclasses

wx.lib.analogclock.analogclock.AnalogClockWindow


super_classes Known Superclasses

wx.Window


method_summary Methods Summary

__init__

Initialize self. See help(type(self)) for accurate signature.

DoGetBestSize

DoGetBestSize() -> Size

GetClockStyle

Returns the current clock style.

GetFaceBorderColour

Gets border colours of watch.

GetFaceBorderWidth

Gets border width of watch.

GetFaceFillColour

Gets fill colours of watch.

GetHandBorderColour

Gets border colours of hands.

GetHandBorderWidth

Gets border widths of hands.

GetHandFillColour

Gets fill colours of hands.

GetHandSize

Gets thickness of hands.

GetShadowColour

Gets the colour to be used to draw shadows.

GetTickBorderColour

Gets border colours of ticks.

GetTickBorderWidth

Gets border widths of ticks.

GetTickFillColour

Gets fill colours of ticks.

GetTickFont

Gets fonts for tick marks when using TICKS_DECIMAL or

GetTickOffset

Gets the distance of tick marks for hours from border.

GetTickPolygon

Gets lists of points to be used as polygon shapes

GetTickSize

Gets sizes of ticks.

GetTickStyle

Gets the tick style(s).

Reset

Forces an immediate recalculation and redraw of all clock

SetBackgroundColour

Overridden base wx.Window method.

SetClockStyle

Set the clock style, according to the options below.

SetFaceBorderColour

Sets border colours of watch.

SetFaceBorderWidth

Sets border width of watch.

SetFaceFillColour

Sets fill colours of watch.

SetForegroundColour

Overridden base wx.Window method. This method sets a colour for

SetHandBorderColour

Sets border colours of hands.

SetHandBorderWidth

Sets border widths of hands.

SetHandFillColour

Sets fill colours of hands.

SetHandSize

Sets thickness of hands.

SetShadowColour

Sets the colour to be used to draw shadows.

SetTickBorderColour

Sets border colours of ticks.

SetTickBorderWidth

Sets border widths of ticks.

SetTickFillColour

Sets fill colours of ticks.

SetTickFont

Sets fonts for tick marks when using text-based tick styles

SetTickOffset

Sets the distance of tick marks for hours from border.

SetTickPolygon

Sets lists of points to be used as polygon shapes

SetTickSize

Sets sizes of ticks.

SetTickStyle

Set the tick style, according to the options below.

SetWindowStyle

Overridden base wx.Window method.

SetWindowStyleFlag

Overridden base wx.Window method.


api 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.