Changeset 8 for trunk/gui/apps


Ignore:
Timestamp:
Apr 2, 2005, 9:33:16 AM (20 years ago)
Author:
mmc
Message:

Updated the code to the latest Rappture XML conventions, and fixed
up the moleculeViewer and energyLevels viewer. Everything works
properly now with the new app-huckel project. You can load up
the molecule viewer, rotate molecules, and view their energy levels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/apps/driver

    r7 r8  
    128128# build everything inside this main window
    129129set win [.main component app]
    130 $win configure -background #a6a6a6
     130#$win configure -background #a6a6a6
    131131
    132132frame $win.input -borderwidth 12 -relief flat
     
    137137
    138138# make an arrow that goes from input to output side
    139 label $win.arrow -borderwidth 0 -image in2out
    140 place $win.arrow -y 2 -anchor n
    141 bind $win.input <Configure> [list align_arrow $win]
    142 proc align_arrow {win} {
    143     place $win.arrow -x [expr {[winfo width $win.input]+5}]
    144 }
     139#label $win.arrow -borderwidth 0 -image in2out
     140#place $win.arrow -y 2 -anchor n
     141#bind $win.input <Configure> [list align_arrow $win]
     142#proc align_arrow {win} {
     143#    place $win.arrow -x [expr {[winfo width $win.input]+5}]
     144#}
    145145
    146146# ----------------------------------------------------------------------
     
    150150set dfirst ""
    151151set dlist [$config children -type structure controls]
    152 puts "device: $dlist"
    153152if {"" != $dlist} {
    154153    foreach dname $dlist {
    155154        set obj [$config element -flavor object controls.$dname]
    156155        set name [$obj get label]
    157 puts " => $name = $obj"
    158156        set devs($name) $obj
    159157    }
     
    177175    set first [lindex $devlist 0]
    178176    set dfirst $devs($first)
    179     set tags [$dfirst children]
     177    set tags [$dfirst children components]
    180178    set i [lsearch $tags label]
    181179    if {$i >= 0} {set tags [lreplace $tags $i $i]}
    182180
    183 puts "first device: tags = $tags"
    184181    if {$tags == "molecule"} {
    185182        Rappture::MoleculeViewer $w.device -device $devs($first) \
Note: See TracChangeset for help on using the changeset viewer.