

The format should be the format recognized by the system. When setting tickDiff to a true value, the major ticks will use a thicker line than the minor ticks. Meaningful values for tickFreq are 1, 5 and 15 showing all ticks, tick every 5 minutes or the four main ticks only, though any positive integer will do (put a tick on any tickFreq minute). TickFreq controls how many ticks are shown in the analog clock. $clock->config (tickColor => "White") tickFreq (1) tickDiff (0) $clock->config (handCenter => 1) tickColor ("Yellow4")Ĭontrols the color of the ticks in the analog clock. If set to a true value, will display a circular extension in the center of the analog clock that extends the hands as if they have a wider area at their turning point, like many station-type clocks (at least in the Netherlands) have. secsColor controls the color for the seconds-hand. handColor controls the color for both the hour-hand and the minute-hand. Set the color of the hands of the analog clock. $clock->config (localOffset => -363967) handColor ("Green4") secsColor ("Green2") # Wind back clock 4 days, 5 hours, 6 minutes and 7 seconds Negative is back in time, positive is in the future. The value of this attribute represents the local offset for this clock in seconds. When the time reaches 0, all countdown values are reset to 0. When setting timerValue to a number of seconds, the format values Hc, Mc, and Sc will represent the hour, minute and second of the this value. This is a slightly experimental feature, it will not count down to a specific point in time, but will simply reverse the rotation, making the analog clock run counterclockwise. When countDown is set to a true value, the clock will run backwards. $clock->config (useSecHand => 0) countDown (0) This controls weather the seconds-hand is shown.

$clock->config (ana24hour => 1) useSecHand (1)
Second hand timer clock full#
This option will show a clock where one round of the hour-hand will cover a full day of 24 hours, noon is at the bottom where the 6 will normally display. The default for the analog clock it the normal 12 hours display, as most clocks are. When using pack for your geometry management, be sure to pass -expand => 1, -fill => "both" if you plan to resize with anaScale or enable/disable either analog or digital after the clock was displayed.

The analog clock can be enlarged or reduced using anaScale for which the default of 100% is about 72x72 pixels. $clock->config (autoScale => 1) anaScale (100) When set to a true value, the widget will try to re-scale itself to automatically fit the containing widget. You can use this field to display personal data. The useInfo enables a text field between the backdrop of the analog clock and its items.

The digital part displays two parts, which are configurable. The analog clock displays ticks, hour hand, minutes hand and second hand. The analog clock will always be displayed above the digital part +-+ useAnalog (1) useInfo (0) useDigital (1)Įnable the analog clock ( useAnalog) and/or the digital clock ( useDigital) in the widget. Their default value is in between parenthesis. configīelow is a description of the options/attributes currently available.
Second hand timer clock plus#
It does accept the standard widget options plus those described in "config". This module implements a Canvas-based clock widget for perl-Tk with lots of options to change the appearance.īoth analog and digital clocks are implemented. $clock->config ( # These reflect the defaults Tk::Clock - Clock widget with analog and digital display SYNOPSIS use Tk
