Changeset 6329 for trunk


Ignore:
Timestamp:
May 14, 2016, 3:51:42 AM (8 years ago)
Author:
ldelgass
Message:

Set default isoline color from settings array

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r6303 r6329  
    15021502        }
    15031503        "-isolinecolor" {
    1504             set color [$itk_component(isolineColor) value]
     1504            set color [$itk_component(isolinecolor) value]
    15051505            set _settings($what) $color
    15061506            DrawLegend
     
    17381738
    17391739    label $inner.linecolor_l -text "Isolines" -font "Arial 9"
    1740     itk_component add isolineColor {
     1740    itk_component add isolinecolor {
    17411741        Rappture::Combobox $inner.linecolor -width 10 -editable 0
    17421742    }
     
    17531753        "none"               "none"
    17541754
    1755     $itk_component(isolineColor) value "white"
     1755    $itk_component(isolinecolor) value $_settings(-isolinecolor)
    17561756    bind $inner.linecolor <<Value>> \
    17571757        [itcl::code $this AdjustSetting -isolinecolor]
  • trunk/gui/scripts/vtksurfaceviewer.tcl

    r6303 r6329  
    13151315        "-isolinecolor" {
    13161316            set _changed($what) 1
    1317             set color [$itk_component(isolineColor) value]
     1317            set color [$itk_component(isolinecolor) value]
    13181318            set _settings($what) $color
    13191319            SendCmd "contour2d linecolor [Color2RGB $color]"
     
    15431543
    15441544    label $inner.linecolor_l -text "Isolines" -font "Arial 9"
    1545     itk_component add isolineColor {
     1545    itk_component add isolinecolor {
    15461546        Rappture::Combobox $inner.linecolor -width 10 -editable 0
    15471547    }
     
    15581558        "none"               "none"
    15591559
    1560     $itk_component(isolineColor) value "white"
     1560    $itk_component(isolinecolor) value $_settings(-isolinecolor)
    15611561    bind $inner.linecolor <<Value>> \
    15621562        [itcl::code $this AdjustSetting -isolinecolor]
Note: See TracChangeset for help on using the changeset viewer.