- Timestamp:
- Jul 22, 2016, 10:57:04 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/visviewer.tcl
r6338 r6437 140 140 private variable _trace 0; # Protocol tracing for console 141 141 private variable _logging 0; # Command logging to file 142 private variable _console; # Debug console window path 142 143 # Number of milliseconds to wait before idle timeout. If greater than 0, 143 144 # automatically disconnect from the visualization server when idle timeout … … 154 155 set _servers(vtkvis) "localhost:2010" 155 156 private common _done; # Used to indicate status of send. 157 private common _consoleCnt 0; 156 158 } 157 159 … … 216 218 set _trace 1 217 219 } 220 incr _consoleCnt 221 set _console ".renderconsole$_consoleCnt" 222 218 223 eval itk_initialize $args 219 224 } … … 226 231 interp delete $_parser 227 232 array unset _done $this 233 if {[winfo exists $_console]} { 234 destroy $_console 235 } 228 236 } 229 237 … … 706 714 # 707 715 itcl::body Rappture::VisViewer::BuildConsole {} { 708 toplevel .renderconsole709 wm protocol .renderconsole WM_DELETE_WINDOW [itcl::code $this HideConsole]710 set f .renderconsole716 toplevel $_console 717 wm protocol $_console WM_DELETE_WINDOW [itcl::code $this HideConsole] 718 set f $_console 711 719 frame $f.send 712 720 pack $f.send -side bottom -fill x … … 763 771 # 764 772 itcl::body Rappture::VisViewer::DebugConsole {} { 765 if { ![winfo exists .renderconsole] } {773 if { ![winfo exists $_console] } { 766 774 BuildConsole 767 775 } … … 769 777 $this configure -sendcommand [itcl::code $this TraceComm] 770 778 $this configure -receivecommand [itcl::code $this TraceComm] 771 wm deiconify .renderconsole779 wm deiconify $_console 772 780 } else { 773 781 $this configure -sendcommand "" 774 782 $this configure -receivecommand "" 775 wm withdraw .renderconsole783 wm withdraw $_console 776 784 } 777 785 }
Note: See TracChangeset
for help on using the changeset viewer.