aboutsummaryrefslogtreecommitdiff
path: root/demos/magicLens.tcl
diff options
context:
space:
mode:
authorlecoanet2006-10-27 14:04:00 +0000
committerlecoanet2006-10-27 14:04:00 +0000
commit566adb1f8a12ab2d56ca6c16d56664e3e1261498 (patch)
treeea9e6d356cc9938a146e46363e2d41072cb47b4f /demos/magicLens.tcl
parenta1c2a5c10fad19b5ac194340965b23e32154b740 (diff)
downloadtkzinc-566adb1f8a12ab2d56ca6c16d56664e3e1261498.zip
tkzinc-566adb1f8a12ab2d56ca6c16d56664e3e1261498.tar.gz
tkzinc-566adb1f8a12ab2d56ca6c16d56664e3e1261498.tar.bz2
tkzinc-566adb1f8a12ab2d56ca6c16d56664e3e1261498.tar.xz
Patches for the new demos
Diffstat (limited to 'demos/magicLens.tcl')
-rw-r--r--demos/magicLens.tcl12
1 files changed, 7 insertions, 5 deletions
diff --git a/demos/magicLens.tcl b/demos/magicLens.tcl
index f9b8d00..576ffb4 100644
--- a/demos/magicLens.tcl
+++ b/demos/magicLens.tcl
@@ -24,8 +24,8 @@ namespace eval magicLens {
lp6Eo0Z8kGKpdrNZSLaruHV8e4e/RIYuV2eGT4Ktbr9/kpc7p6Wud4iNAhEAOw==
}
- font create magfont -family Helvetica -size 13 -weight bold
- font create nfont -family Helvetica -size 11 -weight normal
+ catch {font create magfont -family Helvetica -size 13 -weight bold}
+ catch {font create nfont -family Helvetica -size 11 -weight normal}
#
# The basics colors, one per column.
@@ -72,12 +72,14 @@ namespace eval magicLens {
catch {destroy $w}
toplevel $w
wm title $w "Color Magic Lens Demonstration"
- wm geometry $w "1000x900+0+0"
wm iconname $w magicLens
+
+ grid [button $w.dismiss -text Dismiss -command "destroy $w"] -row 2 -column 0 -pady 10
+ grid [button $w.code -text "See Code" -command "showCode $w"] -row 2 -column 1 -pady 10
#
# Create a Zinc instance
- pack [zinc $w.zinc -render 1 -width $width -height $height -borderwidth 0 \
- -tile paper -backcolor {#cccccc}] -expand yes -fill both
+ grid [zinc $w.zinc -render 1 -width $width -height $height -borderwidth 0 \
+ -tile paper -backcolor {#cccccc}] -row 0 -column 0 -columnspan 2 -sticky ew
#
# The main view. The unzoomed world is here.
$w.zinc add group 1 -tags normview