Leser: 1
|< 1 2 3 >| | 28 Einträge, 3 Seiten |
Quote-state
Specifies one of three states for the widget: normal, readonly, or disabled. If the widget is disabled then the value may not be changed and the arrow button won't activate. If the widget is readonly, the entry may not be edited, but it may be changed by choosing a value from the popup listbox. normal is the default.
1
2
3
4
5
use Tk;
$top = new MainWindow;
$b = $top->Button(-st => "disa")->pack;
warn $b->cget(-state);
MainLoop;
1
2
3
4
5
6
7
8
9
10
11
for (qw(Browse Entry NumEntry Date*NumEntryPlain PathEntry
Listbox KListbox K2Listbox
TixHList HList Text ROText BrowseEntry.Entry SimpleHistEntry
ListboxSearchAnything
)) {
if ($os eq 'win') {
$top->optionAdd("*$_.background", "SystemWindow", "startupFile");
} else {
$top->optionAdd("*$_.background", "grey95", "startupFile");
}
}
|< 1 2 3 >| | 28 Einträge, 3 Seiten |