Changeset 1483
- Timestamp:
- Jun 2, 2009, 8:43:00 AM (15 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/gauge.tcl
r1342 r1483 234 234 switch -- $itk_option(-type) { 235 235 integer { 236 if {[string length $nv] <= 0 237 || ![string is integer $nv] } { 238 error "Should be an integer value" 236 if { [scan $nv "%g" value] != 1 || int($nv) != $value } { 237 error "bad value \"$nv\": should be an integer value" 239 238 } 240 239 } … … 243 242 || ![string is double $nv] 244 243 || [regexp -nocase {^(inf|nan)$} $nv]} { 245 error " Should be a real number"244 error "bad value \"$nv\": should be a real number" 246 245 } 247 246 } -
trunk/gui/scripts/molvisviewer.tcl
r1438 r1483 70 70 public method ResetView {} 71 71 72 protected method SendCmd { args}72 protected method SendCmd { string } 73 73 protected method Update { args } 74 74 protected method Rebuild { } … … 598 598 } 599 599 600 itcl::body Rappture::MolvisViewer::SendCmd { args} {601 debug " SendCmd $args"600 itcl::body Rappture::MolvisViewer::SendCmd { cmd } { 601 debug "in SendCmd ($cmd)\n" 602 602 603 603 if { $_buffering } { … … 611 611 set _rocker(server) $_rocker(client) 612 612 } 613 append _outbuf "$ args\n"613 append _outbuf "$cmd\n" 614 614 } else { 615 615 if { $_state(server) != $_state(client) } { … … 623 623 } 624 624 } 625 eval SendBytes "$args\n"625 SendBytes "$cmd\n" 626 626 } 627 627 } … … 1480 1480 # are specified, then all dataobjs are deleted. 1481 1481 # ---------------------------------------------------------------------- 1482 itcl::body Rappture::MolvisViewer::delete { args} {1482 itcl::body Rappture::MolvisViewer::delete { args } { 1483 1483 if {[llength $args] == 0} { 1484 1484 set args $_dlist -
trunk/gui/scripts/visviewer.tcl
r1448 r1483 527 527 # 528 528 itcl::body Rappture::VisViewer::SendEcho {channel {data ""}} { 529 #puts stderr ">> $data"529 #puts stderr ">>($data)" 530 530 if {[string length $itk_option(-sendcommand)] > 0} { 531 531 uplevel #0 $itk_option(-sendcommand) [list $channel $data]
Note: See TracChangeset
for help on using the changeset viewer.