Changeset 2579 for trunk/gui/scripts/visviewer.tcl
- Timestamp:
- Sep 27, 2011, 11:49:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/visviewer.tcl
r2547 r2579 30 30 private variable _initialized 31 31 private variable _isOpen 0 32 private variable _afterId -1 33 32 34 # Number of milliseconds to wait before idle timeout. 33 35 # If greater than 0, automatically disconnect from the visualization … … 56 58 private method SendHelper.old {} 57 59 private method CheckConnection {} 60 private method SplashScreen { state } 58 61 59 62 protected method SendEcho { channel {data ""} } … … 118 121 $_parser hide $cmd 119 122 } 120 121 123 # 122 124 # Set up the widgets in the main body … … 400 402 flush $_sid 401 403 } 404 after cancel $_afterId 405 set _afterId [after 500 [itcl::code $this SplashScreen on]] 402 406 if 0 { 403 407 if { ![CheckConnection] } { … … 415 419 # 416 420 itcl::body Rappture::VisViewer::ReceiveBytes { size } { 421 SplashScreen off 417 422 if { ![CheckConnection] } { 418 423 return 0 … … 539 544 } 540 545 } 546 547 itcl::body Rappture::VisViewer::SplashScreen { state } { 548 after cancel $_afterId 549 set _afterId -1 550 if { $state } { 551 if { [winfo exists $itk_component(plotarea).view.splash] } { 552 return 553 } 554 label $itk_component(plotarea).view.splash -text "Please wait" 555 pack $itk_component(plotarea).view.splash -expand yes -anchor c 556 } else { 557 if { ![winfo exists $itk_component(plotarea).view.splash] } { 558 return 559 } 560 destroy $itk_component(plotarea).view.splash 561 } 562 } 563
Note: See TracChangeset
for help on using the changeset viewer.