diff options
author | dgp@users.sourceforge.net <dgp> | 2001-08-01 16:21:11 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2001-08-01 16:21:11 (GMT) |
commit | c7434cee89e3147e22707264d6a59c0f68153e58 (patch) | |
tree | 38846cbe94cc8aac068898282ced4624f130770e /tests/clrpick.test | |
parent | 70f7337d907732723cfac8033e7ff856d33aa5e8 (diff) | |
download | tk-c7434cee89e3147e22707264d6a59c0f68153e58.zip tk-c7434cee89e3147e22707264d6a59c0f68153e58.tar.gz tk-c7434cee89e3147e22707264d6a59c0f68153e58.tar.bz2 |
Merged changes from feature branch dgp-privates-into-namespace,
implementing TIP 44. All Tk commands and variables matching
tk[A-Z]* are now in the ::tk namespace.
Diffstat (limited to 'tests/clrpick.test')
-rw-r--r-- | tests/clrpick.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/clrpick.test b/tests/clrpick.test index 94a99c0..2259fe7 100644 --- a/tests/clrpick.test +++ b/tests/clrpick.test @@ -5,7 +5,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: clrpick.test,v 1.5 2000/03/02 03:02:13 ericm Exp $ +# RCS: @(#) $Id: clrpick.test,v 1.6 2001/08/01 16:21:12 dgp Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -54,7 +54,7 @@ test clrpick-1.7 {tk_chooseColor command} { list [catch {tk_chooseColor -initialcolor ##badbadbaadcolor} msg] $msg } {1 {invalid color name "##badbadbaadcolor"}} -if {[info commands tkColorDialog] == ""} { +if {[info commands tk::dialog::color::] == ""} { set isNative 1 } else { set isNative 0 @@ -82,7 +82,7 @@ proc PressButton {btn} { proc ChooseColorByKey {parent r g b} { set w .__tk__color - upvar #0 $w data + upvar ::tk::dialog::color::[winfo name $w] data update $data(red,entry) delete 0 end @@ -96,14 +96,14 @@ proc ChooseColorByKey {parent r g b} { # Manually force the refresh of the color values instead # of counting on the timing of the event stream to change # the values for us. - tkColorDialog_HandleRGBEntry $w + tk::dialog::color::HandleRGBEntry $w SendButtonPress $parent ok mouse } proc SendButtonPress {parent btn type} { set w .__tk__color - upvar #0 $w data + upvar ::tk::dialog::color::[winfo name $w] data set button $data($btn\Btn) if ![winfo ismapped $button] { |