Artifact
af8aa855373788d8347da7d47b4ca2b88f3a4c5f:
Attachment "test.tcl" to
ticket [466773ff]
added by
fandom
2001-10-01 16:33:36.
###############################################################################
# Activate
# Activates or deactivates the checkbuttons.
###############################################################################
proc Activate {} {
global radio dayButton
if {$radio(days)==0} {
$dayButton(monday) configure -state disable
$dayButton(tuesday) configure -state disable
} else {
$dayButton(monday) configure -state active
$dayButton(tuesday) configure -state active
}
return
}
###############################################################################
# DelayedDownloadWindow
# Creates the dialog to define when to start a download.
###############################################################################
proc TestWindow {} {
global radio dayButton
set daysFrame [frame .days]
set today [radiobutton $daysFrame.today -text "Only today" \
-variable radio(days) -value 0 -command Activate]
set on [radiobutton $daysFrame.on -text "On" \
-variable radio(days) -value 1 -command Activate]
set radio(days) 0
set dayButton(monday) [checkbutton $daysFrame.monday -text Monday \
-variable checkValue(monday)]
set dayButton(tuesday) [checkbutton $daysFrame.tuesday -text Tuesday \
-variable checkValue(tuesday)]
Activate
grid $daysFrame -sticky news -ipadx 7 -ipady 7 -padx 5
grid $today $on
grid $dayButton(monday) $dayButton(tuesday) -sticky w
return
}
TestWindow