in reply to Configure default widget options in Tk
#!/usr/bin/perl -w use strict; use Tk; my $mw=tkinit; $mw->optionAdd("*background"=>'lightblue','userDefault'); $mw->Listbox->pack->insert(0,qw/a listbox/); $mw->Text->pack->insert('1.0','text widget'); $mw->Entry->pack->insert(0,'entry widget'); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Configure default widget options in Tk
by hangon (Deacon) on Jan 19, 2009 at 20:36 UTC |