Tk::Preferences

A Perl module for setting font and color preferences in all children of a perl/Tk widget.
Download

Tk::Preferences Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andrew N. Hicox
  • Publisher web site:
  • http://search.cpan.org/~ahicox/Config-Framework-2.5/Framework.pod

Tk::Preferences Tags


Tk::Preferences Description

A Perl module for setting font and color preferences in all children of a perl/Tk widget. Tk::Preferences is a Perl module for setting font and color preferences in all children of a perl/Tk widget.SYNOPSISuse Tk;require Tk::Preferences;$mw->SetPrefs(-prefs => \%preferences);How This WorksTo start with, let it be known that this is a ridiculously simple module, and that there are other (arguably better) ways to accomplish the same end. In particular, you should take a look at Tk::CmdLine, and Tk::ColorEditor. You might also want to take a look at using Xresources files. That being said, I have personally found this to be a preferable method of handling user-defined GUI preferences, because it's easy ... at least it seems that way to me. You be the judge ...Let it also be known that to get this to work I had to manually insert the SetPrefs method into the Tk::* namespace. This is generally frowned upon, but it works, and so I'm not complaining.This works by using the Tk::Walk method against what ever parent widget you call to visit each child widget. The child widget is then configured based on it's type and the data you send into SetPrefs. Requirements: · Perl


Tk::Preferences Related Software