- Timestamp:
- Dec 4, 2009 4:59:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expgui
- Property rcs:date changed from 1999/03/19 17:07:59 to 1999/03/30 16:18:11
- Property rcs:lines changed from +23 -19 to +19 -2
- Property rcs:rev changed from 1.12 to 1.13
r71 r74 35 35 append expgui(expfile) ".EXP" 36 36 } 37 if {[file dirname $expgui(expfile)] == "."} { 38 set expgui(expfile) [string toupper $expgui(expfile)] 39 } else { 40 set expgui(expfile) [file join \ 41 [file dirname $expgui(expfile)] \ 42 [file tail [string toupper $expgui(expfile)]] 43 ] 44 } 37 45 } else { 38 46 set expgui(expfile) {} … … 128 136 } 129 137 if {$expgui(expfile) == ""} { 130 # windows needs this update or focus gets screwed up after tk_getOpenFile 138 # center the parent window because the getExpFileName window 139 # will be centered above it. 140 wm withdraw . 141 set x [expr [winfo screenwidth .]/2 - [winfo reqwidth .]/2 ] 142 set y [expr [winfo screenheight .]/2 - [winfo reqheight .]/2] 143 wm geom . +$x+$y 144 wm deiconify . 145 # windows needed this update before when using tk_getOpenFile. 146 # I am not sure it is still needed. 131 147 update 148 # 132 149 set expgui(expfile) [getExpFileName old] 133 150 }
Note: See TracChangeset
for help on using the changeset viewer.