Changeset 81 for trunk


Ignore:
Timestamp:
Oct 3, 2005 7:39:09 PM (19 years ago)
Author:
mmc
Message:

Fixed the energy level viewer to honor the new "-color auto"
and "-color autoreset" options.

Fixed a bug in the DeviceLayout1D object, where it would show the
wrong x-axis limits (and no axis) when a structure was first
displayed.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/deviceLayout1D.tcl

    r53 r81  
    504504    }
    505505    set _device $itk_option(-device)
    506     $_dispatcher event -idle !redraw
     506    $_dispatcher event -idle !layout
    507507}
    508508
  • trunk/gui/scripts/energyLevels.tcl

    r13 r81  
    288288    #
    289289    array set params {
    290         -color black
     290        -color auto
    291291        -brightness 0
    292292        -width 1
     
    312312        set params(-color) [Rappture::color::brightness \
    313313            $params(-color) $params(-brightness)]
     314    }
     315    if {$params(-color) == "auto" || $params(-color) == "autoreset"} {
     316        # can't handle -autocolors yet
     317        set params(-color) blue
    314318    }
    315319
Note: See TracChangeset for help on using the changeset viewer.