Changeset 168 for trunk/gui/scripts
- Timestamp:
- Feb 8, 2006, 5:18:56 PM (19 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/analyzer.tcl
r115 r168 156 156 pack $itk_component(abort) -side left -expand yes -padx 4 -pady 4 157 157 158 Rappture::Scroller $w.info -xscrollmode off-yscrollmode auto158 Rappture::Scroller $w.info -xscrollmode auto -yscrollmode auto 159 159 pack $w.info -expand yes -fill both -padx 4 -pady 4 160 160 itk_component add runinfo { … … 348 348 $itk_component(notebook) current analyze 349 349 } 350 351 # do this last -- after _simOutput above 352 pack forget $itk_component(progress) 350 353 } 351 354 -
trunk/gui/scripts/deviceEditor.tcl
r115 r168 45 45 } 46 46 pack $itk_component(top) -fill x 47 48 itk_component add editors {49 Rappture::Notebook $itk_interior.editors50 }51 pack $itk_component(editors) -expand yes -fill both52 47 53 48 eval itk_initialize $args … … 117 112 switch -- [_type $_xmlobj] { 118 113 molecule { 119 if { [catch {$itk_component(editors) page molecule} p]} {120 set p [$itk_component(editors) insert end molecule]121 Rappture::MoleculeViewer $ p.mol $this122 pack $ p.mol -expand yes -fill both114 if {![winfo exists $itk_component(hull).mol]} { 115 catch {destroy $itk_component(hull).dev} 116 Rappture::MoleculeViewer $itk_component(hull).mol $this 117 pack $itk_component(hull).mol -expand yes -fill both 123 118 } 124 $p.mol configure -device $_xmlobj 125 $itk_component(editors) current molecule 119 $itk_component(hull).mol configure -device $_xmlobj 126 120 127 set _current $ p.mol121 set _current $itk_component(hull).mol 128 122 } 129 123 device1D { 130 if { [catch {$itk_component(editors) page device1D} p]} {131 set p [$itk_component(editors) insert end device1D]132 Rappture::DeviceViewer1D $ p.dev $this133 pack $ p.dev -expand yes -fill both124 if {![winfo exists $itk_component(hull).dev]} { 125 catch {destroy $itk_component(hull).mol} 126 Rappture::DeviceViewer1D $itk_component(hull).dev $this 127 pack $itk_component(hull).dev -expand yes -fill both 134 128 } 135 $p.dev configure -device $_xmlobj 136 $itk_component(editors) current device1D 129 $itk_component(hull).dev configure -device $_xmlobj 137 130 138 set _current $ p.dev131 set _current $itk_component(hull).dev 139 132 } 140 133 } -
trunk/gui/scripts/exec.tcl
r158 r168 33 33 set execout(channel) "" 34 34 set execout(extra) "" 35 set execctl "" 35 36 36 37 set status [catch {eval blt::bgexec ::Rappture::execctl \ -
trunk/gui/scripts/scroller.tcl
r115 r168 78 78 scrollbar $itk_interior.ysbar -orient vertical 79 79 } 80 81 # we don't fix scrollbars when window is withdrawn, so 82 # fix them whenever a window pops up 83 bind $itk_component(hull) <Map> " 84 [itcl::code $this _fixsbar x] 85 [itcl::code $this _fixsbar y] 86 " 80 87 81 88 grid rowconfigure $itk_component(hull) 0 -weight 1 … … 177 184 # ---------------------------------------------------------------------- 178 185 itcl::body Rappture::Scroller::_fixsbar {which {state ""}} { 186 if {![winfo ismapped $itk_component(hull)]} { 187 # 188 # If we're not on yet screen, bail out! This keeps bad 189 # numbers (from an empty or partially constructed widget) 190 # from prematurely influencing the scrollbar. 191 # 192 return 193 } 194 179 195 if {$state == ""} { 180 196 switch -- [string tolower $itk_option(-${which}scrollmode)] {
Note: See TracChangeset
for help on using the changeset viewer.