Re: get default options of Tk widgets
- From: Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 17:26:46 +0200
Hi,
is this what you are looking for?
set widget [ label .l]
set alloptions [ $widget configure ]
set singleoption [ $widget configure -$option ]
foreach item $alloptions {
foreach {argname optdbname class default current} $item {
puts "cmdline name : $argname"
puts "optdbname : $optdbname"
puts "Class : $class"
puts "default val : \"$default\""
puts "current val : \"$current\""
puts ""
}
}
set option [ string trimleft $argname - ]
set singleoption [ $widget configure -$option ]
puts "singleoption \"$option\""
foreach {argname optdbname class default current} $singleoption {
puts "cmdline name : $argname"
puts "optdbname : $optdbname"
puts "Class : $class"
puts "default val : \"$default\""
puts "current val : \"$current\""
puts ""
}
uwe
.
- References:
- get default options of Tk widgets
- From: Simon Bachmann
- get default options of Tk widgets
- Prev by Date: Re: get default options of Tk widgets
- Next by Date: Standard file open/app launch commands for Mac, Win, and X11
- Previous by thread: Re: get default options of Tk widgets
- Next by thread: Standard file open/app launch commands for Mac, Win, and X11
- Index(es):