summaryrefslogtreecommitdiffstats
path: root/library/demos/button.tcl
diff options
context:
space:
mode:
authordas <das>2007-10-17 18:21:49 (GMT)
committerdas <das>2007-10-17 18:21:49 (GMT)
commit6a127a690e28a07ba6cd36bdda959bba81570cba (patch)
tree91501ba3d2148351db54101f0b32339b2a8d8059 /library/demos/button.tcl
parent06aac43788b42da26dec6e6a57265b232a506c26 (diff)
downloadtk-6a127a690e28a07ba6cd36bdda959bba81570cba.zip
tk-6a127a690e28a07ba6cd36bdda959bba81570cba.tar.gz
tk-6a127a690e28a07ba6cd36bdda959bba81570cba.tar.bz2
* library/demos/widget: Aqua GOOBE, cleanup icons.
* library/demos/ttkbut.tcl: * library/demos/button.tcl: restore setting of button highlightbackground on Aqua.
Diffstat (limited to 'library/demos/button.tcl')
-rw-r--r--library/demos/button.tcl12
1 files changed, 11 insertions, 1 deletions
diff --git a/library/demos/button.tcl b/library/demos/button.tcl
index 5833fd0..6bde4ba 100644
--- a/library/demos/button.tcl
+++ b/library/demos/button.tcl
@@ -3,7 +3,7 @@
# This demonstration script creates a toplevel window containing
# several button widgets.
#
-# RCS: @(#) $Id: button.tcl,v 1.7 2007/10/15 21:06:16 dkf Exp $
+# RCS: @(#) $Id: button.tcl,v 1.8 2007/10/17 18:21:49 das Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -26,6 +26,16 @@ pack [addSeeDismiss $w.buttons $w] -side bottom -fill x
proc colorrefresh {w col} {
$w configure -bg $col
+ if {[tk windowingsystem] eq "aqua"} {
+ # set highlightbackground of all buttons in $w
+ set l [list $w]
+ while {[llength $l]} {
+ set l [concat [lassign $l b] [winfo children $b]]
+ if {[winfo class $b] eq "Button"} {
+ $b configure -highlightbackground $col
+ }
+ }
+ }
}
button $w.b1 -text "Peach Puff" -width 10 \