Changeset 6138
- Timestamp:
- Mar 19, 2016 3:43:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/map.tcl
r6102 r6138 497 497 498 498 itcl::body Rappture::Map::setStyle { style } { 499 if {$style != "" && [llength $style] % 2 != 0} { 500 error "Bad map style, must be key/value pairs" 501 } 502 array set styleinfo $style 503 foreach key [array names styleinfo] { 504 set valid 0 505 foreach validkey {-ambient -color -edgecolor -edges -lighting -linewidth -vertscale -wireframe} { 506 if {$key == $validkey} { 507 set valid 1 508 break 509 } 510 } 511 if {!$valid} { 512 error "Unknown style setting: $key" 513 } 514 } 499 515 $_tree set root "style" $style 500 516 }
Note: See TracChangeset
for help on using the changeset viewer.