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. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |