Changeset 419 for trunk/expgui
- Timestamp:
- Dec 4, 2009 5:05:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expgui
- Property rcs:date changed from 2001/06/29 18:06:31 to 2001/09/04 22:08:10
- Property rcs:lines changed from +90 -16 to +34 -23
- Property rcs:rev changed from 1.44 to 1.45
r399 r419 78 78 # misc constants 79 79 set txtvw(font) "Courier" 80 set expgui(coordfont) "-*-courier-bold-r-normal--12-*" 81 set expgui(histfont) "-*-courier-bold-r-normal--12-*" 80 set expgui(font) 14 82 81 set liveplot(hst) 1 83 82 set liveplot(legend) 1 … … 126 125 if {!$expgui(haveBW)} {source [file join $expgui(scriptdir) notebook.tcl]} 127 126 #---------------------------------------------------------------- 128 if [file exists [file join $expgui(scriptdir) opts.tcl]] { 129 source [file join $expgui(scriptdir) opts.tcl] 130 } 127 source [file join $expgui(scriptdir) opts.tcl] 131 128 # fetch EXP file processing routines 132 129 source [file join $expgui(scriptdir) readexp.tcl] … … 147 144 source [file join ~ .gsas_config] 148 145 } 146 SetTkDefaultOptions $expgui(font) 149 147 #--------------------------------------------------------------------------- 150 148 # platform-specific code … … 509 507 global expgui env tcl_platform 510 508 set fp [open [file join ~ .gsas_config] a] 511 foreach item {archive asorttype hsorttype filesort disaglSeparateBox } {509 foreach item {archive asorttype hsorttype filesort disaglSeparateBox font autoexpload autoiconify} { 512 510 puts $fp "set expgui($item) $expgui($item)" 513 511 } … … 515 513 puts $fp "set env(GSASBACKSPACE) $env(GSASBACKSPACE)" 516 514 } 517 puts $fp "set expgui(archive) $expgui(archive)"518 puts $fp "set expgui(autoexpload) $expgui(autoexpload)"519 puts $fp "set expgui(autoiconify) $expgui(autoiconify)"520 515 close $fp 521 516 } … … 602 597 frame $w.bot 603 598 pack $w.bot -side bottom 604 frame $w.top 599 frame $w.top -class FixedFont 605 600 pack $w.top -side top -fill both -expand 1 606 601 label $w.top.msg -justify left \ … … 1252 1247 bind $frm.mode <Button-3> {set expgui(globalmode) 0; sethistlist} 1253 1248 grid [listbox $frm.title -height 1 -relief flat \ 1254 -exportselection 0 \ 1255 -font $expgui(histfont) ] -row 1 -column 0 -sticky ew 1249 -exportselection 0 ] -row 1 -column 0 -sticky ew 1256 1250 grid [listbox $frm.lbox -height 10 -width 25 \ 1257 1251 -exportselection 0 \ 1258 -font $expgui(histfont) \1259 1252 -xscrollcommand "$frm.x set" \ 1260 1253 -yscrollcommand "$frm.y set" \ … … 2747 2740 if $expgui(haveBW) { 2748 2741 pack [NoteBook .n -bd 2] -expand yes -fill both 2742 # this should not be needed, but for some reason NoteBook is not 2743 # using the optionDB 2744 catch {.n configure -font [option get .n font Canvas]} 2749 2745 foreach item $expgui(notebookpagelist) { 2750 2746 set frm [lindex $item 0] … … 2823 2819 # This is a big frame in the Phase notebook pane to hold atomic data. 2824 2820 set fbig [frame $expgui(phaseFrame).fbig -width 180 \ 2825 -relief raised -borderwidth 4 ]2821 -relief raised -borderwidth 4 -class Coord] 2826 2822 # This is a frame just below the big frame: for edits 2827 2823 set frame3 [frame $expgui(phaseFrame).frame3 -width 100 \ … … 2858 2854 incr row 2859 2855 foreach col {2 4 6} var {alpha beta gamma} lbl {a b g} { 2860 grid [label $frameLatt.l$var -text $lbl -font symbol] \2856 grid [label $frameLatt.l$var -text $lbl] \ 2861 2857 -column $col -row $row -padx 5 -sticky e 2858 set font [$frameLatt.l$var cget -font] 2859 $frameLatt.l$var config -font "Symbol [lrange $font 1 end]" 2860 2862 2861 incr col 2863 2862 grid [entry $frameLatt.e$var -textvariable entryvar($var) -width 10] \ … … 2895 2894 bind $expgui(atomtitle) <Button-3> {set expgui(asorttype) number; DisplayAllAtoms} 2896 2895 2897 $expgui(atomtitle) configure - font $expgui(coordfont) -selectmode extended2896 $expgui(atomtitle) configure -selectmode extended 2898 2897 grid [listbox $fbig.lbox -height 10 \ 2899 2898 -exportselection 0 \ … … 2902 2901 ] -row 1 -column 0 -sticky news 2903 2902 set expgui(atomlistbox) $fbig.lbox 2904 $expgui(atomlistbox) configure - font $expgui(coordfont) -selectmode extended2903 $expgui(atomlistbox) configure -selectmode extended 2905 2904 grid [scrollbar $fbig.bscr -orient horizontal \ 2906 2905 -command "move2boxes \" $fbig.title $fbig.lbox \" " \ … … 3013 3012 3014 3013 proc move2boxes {boxlist args} { 3015 foreach l istbox $boxlist {3016 eval $l istbox xview $args3014 foreach lbox $boxlist { 3015 eval $lbox xview $args 3017 3016 } 3018 3017 } … … 3027 3026 grid rowconfigure $expgui(histFrame) 3 -weight 1 3028 3027 3029 grid [frame $expgui(histFrame).hs ] \3028 grid [frame $expgui(histFrame).hs -class HistList] \ 3030 3029 -column 0 -row 0 -rowspan 10 -sticky nsew 3031 3030 MakeHistBox $expgui(histFrame).hs … … 3102 3101 global expgui entryvar entrybox 3103 3102 3104 pack [frame $expgui(fracFrame).hs] -side left -expand y -fill both 3103 pack [frame $expgui(fracFrame).hs -class HistList] \ 3104 -side left -expand y -fill both 3105 3105 MakeHistBox $expgui(fracFrame).hs 3106 3106 bind $expgui(fracFrame).hs.lbox <ButtonRelease-1> { … … 3186 3186 global expgui 3187 3187 # v v v v v v v v v v BEGINNING OF PROFILE PANE CODE v v v v v v v v v v v 3188 pack [frame $expgui(profFrame).hs] -side left -expand y -fill both 3188 pack [frame $expgui(profFrame).hs -class HistList] \ 3189 -side left -expand y -fill both 3189 3190 MakeHistBox $expgui(profFrame).hs 3190 3191 bind $expgui(profFrame).hs.lbox <ButtonRelease-1> { … … 3236 3237 9 "Print zero/unit pole figure constraint terms" 3237 3238 } 3238 pack [frame $expgui(lsFrame).hs] -side left -expand y -fill both 3239 pack [frame $expgui(lsFrame).hs -class HistList] \ 3240 -side left -expand y -fill both 3239 3241 MakeHistBox $expgui(lsFrame).hs 3240 3242 bind $expgui(lsFrame).hs.lbox <ButtonRelease-1> { … … 3503 3505 } 3504 3506 3507 $expgui(fm).option.menu add cascade -menu $expgui(fm).option.menu.font \ 3508 -label "Screen font" 3509 menu $expgui(fm).option.menu.font 3510 foreach f {10 11 12 13 14 16 18 20} { 3511 $expgui(fm).option.menu.font add radiobutton \ 3512 -command {SetTkDefaultOptions $expgui(font); ResizeFont .; ResizeNotebook} \ 3513 -label $f -value $f -variable expgui(font) -font "Helvetica -$f" 3514 } 3515 3505 3516 $expgui(fm).option.menu add checkbutton -label "Show EXPTOOL output" \ 3506 3517 -variable expgui(showexptool)
Note: See TracChangeset
for help on using the changeset viewer.