Package wx :: Package lib :: Package analogclock
[frames | no frames]

Package wx.lib.analogclock

AnalogClock - an analog clock.

This control creates an analog clock window. Its features include shadowing, the ability to render numbers as well as any arbitrary polygon as tick marks, resize marks and hands proportionally as the widget itself is resized, rotate marks in a way the get aligned to the watch. It also has a dialog, accessed via a context menu item, allowing one to change on the fly all of its settings.

Usage:

AnalogClock(parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.NO_BORDER, name="AnalogClock", clockStyle=DEFAULT_CLOCK_STYLE, minutesStyle=TICKS_CIRCLE, hoursStyle=TICKS_POLY)

Notes:

The 'target' keyword that's present in various of the AnalogClock methods may accept one (or more, combined using '|') of the following values:

HOUR The values passed/retrieved are related to the hours hand/ticks
MINUTE The values passed/retrieved are related to the minutes hand/ticks
SECOND The values passed/retrieved are related to the seconds hand/ticks
ALL The same as HOUR|MINUTE|SECOND, i. e., the values passed/retrieved are related to all of the hours hands/ticks. This is the default value in all methods.

It is legal to pass target=ALL to methods that don't handle seconds (tick mark related methods). In such cases, ALL will be equivalent to HOUR|MINUTE.

All of the 'Get' AnalogClock methods that allow the 'target' keyword will always return a tuple, e. g.:

GetHandSize(target=HOUR) Returns a 1 element tuple, containing the size of the hours hand.
GetHandSize(target=HOUR|MINUTE) Returns a 2 element tuple, containing the sizes of the hours and the minutes hands, respectively.
GetHandSize(target=ALL) Returns a 3 element tuple, containing
or the sizes of the hours, minutes and
GetHandSize() seconds hands, respectively.

About:

Most of the ideas and part of the code of AnalogClock were based on the original wxPython's AnalogClock module, which was created by several folks on the wxPython-users list.

AnalogClock is distributed under the wxWidgets license.

This code should meet the wxPython Coding Guidelines <http://www.wxpython.org/codeguidelines.php> and the wxPython Style Guide <http://wiki.wxpython.org/index.cgi/wxPython_20Style_20Guide>.

For all kind of problems, requests, enhancements, bug reports, etc, please drop me an e-mail.

For updates please visit <http://j.domaindlx.com/elements28/wxpython/>.


Submodules

Variable Summary
str __author__ = 'E. A. Tacao <e.a.tacao |at| estadao.com.br...
str __date__ = '15 Fev 2006, 22:00 GMT-03:00'
str __version__ = '0.02'

Variable Details

__author__

Type:
str
Value:
'E. A. Tacao <e.a.tacao |at| estadao.com.br>'                          

__date__

Type:
str
Value:
'15 Fev 2006, 22:00 GMT-03:00'                                         

__version__

Type:
str
Value:
'0.02'                                                                 

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