Changeset 6231
- Timestamp:
- Apr 1, 2016 10:28:56 AM (7 years ago)
- Location:
- branches/1.7
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/gui/scripts/analyzer.tcl
r6205 r6231 451 451 # ---------------------------------------------------------------------- 452 452 itcl::body Rappture::Analyzer::simulate {args} { 453 #puts "simulate args='$args'"454 453 455 454 set uq [$_tool get_uq -uq_type smolyak -uq_args 2] … … 1957 1956 configure -notebookpage analyze 1958 1957 global win 1958 $win.pager configure -nosim 1 1959 1959 $win.pager current analyzer 1960 $win.pager configure -nosim 0 1960 1961 if 0 { 1961 1962 # Load the inputs for the very last run -
branches/1.7/gui/scripts/main.tcl
r6103 r6231 405 405 406 406 foreach path [array names ::Rappture::parameters] { 407 if { $path == "simset" } { 408 continue; # Don't consider file(simset) 409 } 407 410 set fname $::Rappture::parameters($path) 408 if {[catch { 409 set fid [open $fname r] 410 set info [read $fid] 411 close $fid}] == 0} { 412 413 set w [$tool widgetfor $path] 414 if {$w ne ""} { 415 if {[catch {$w value [string trim $info]} result]} { 416 puts stderr "WARNING: bad tool parameter value for \"$path\"" 417 puts stderr " $result" 418 } 419 } else { 420 puts stderr "WARNING: can't find control for tool parameter: $path" 421 } 411 if { ![file exists $fname] } { 412 puts stderr "WARNING: tool parameters file \"$fname\" doesn't exist" 413 continue; # Can't find parameters file 414 } 415 if { ![file readable $fname] } { 416 puts stderr "WARNING: can't read tool parameters file \"$fname\"" 417 continue; # Can't read parameters file 418 } 419 set f [open $fname r] 420 set contents [read $f] 421 close $f 422 423 set w [$tool widgetfor $path] 424 if { $w == "" } { 425 puts stderr "WARNING: can't find control for tool parameter: $path" 426 continue; # Can't find rappture control for path 427 } 428 if {[catch {$w value [string trim $info]} result]} { 429 puts stderr "WARNING: bad tool parameter value for \"$path\"" 430 puts stderr " $result" 422 431 } 423 432 } -
branches/1.7/gui/scripts/pager.tcl
r5679 r6231 67 67 private variable _page2info ;# maps page name => -frame,-title,-command 68 68 private variable _current "" ;# page currently shown 69 public variable nosim 0 69 70 } 70 71 … … 374 375 # invoke it now. 375 376 # 376 if {"" != $_current 377 &&[string length $_page2info($_current-command)] > 0} {377 if {"" != $_current && !$nosim && 378 [string length $_page2info($_current-command)] > 0} { 378 379 uplevel #0 $_page2info($_current-command) 379 380 } -
branches/1.7/lang/tcl/scripts/task.tcl
r6221 r6231 626 626 # non-zero exitcode. Consider this an invalid result from the 627 627 # program. Append the stderr from the program to the message. 628 if {$ code> 128} {628 if {$_job(exitcode) > 128} { 629 629 set logmesg "Program signaled: signal was [GetSignal $_job(exitcode)]" 630 630 } else {
Note: See TracChangeset
for help on using the changeset viewer.