Changeset 3654


Ignore:
Timestamp:
May 15, 2013, 1:10:54 PM (11 years ago)
Author:
mmc
Message:

Switched the order of +/- buttons for integer spinners.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r3647 r3654  
    139139    }
    140140
     141    itk_component add spinup {
     142        button $itk_component(spinner).up -image [Rappture::icon intplus] \
     143            -borderwidth 1 -relief raised -highlightthickness 0 \
     144            -command [itcl::code $this bump 1]
     145    } {
     146        usual
     147        ignore -borderwidth -highlightthickness
     148        rename -background -buttonbackground buttonBackground Background
     149    }
     150    pack $itk_component(spinup) -side left -expand yes -fill both
     151
    141152    itk_component add spindn {
    142153        button $itk_component(spinner).down -image [Rappture::icon intminus] \
     
    148159        rename -background -buttonbackground buttonBackground Background
    149160    }
    150     pack $itk_component(spindn) -side left -expand yes -fill both
    151 
    152     itk_component add spinup {
    153         button $itk_component(spinner).up -image [Rappture::icon intplus] \
    154             -borderwidth 1 -relief raised -highlightthickness 0 \
    155             -command [itcl::code $this bump 1]
    156     } {
    157         usual
    158         ignore -borderwidth -highlightthickness
    159         rename -background -buttonbackground buttonBackground Background
    160     }
    161     pack $itk_component(spinup) -side right -expand yes -fill both
     161    pack $itk_component(spindn) -side right -expand yes -fill both
    162162
    163163    itk_component add presets {
  • trunk/gui/scripts/spinint.tcl

    r3647 r3654  
    6767    pack $itk_component(controls) -side right
    6868
     69    itk_component add up {
     70        button $itk_component(controls).spinup \
     71            -image [Rappture::icon intplus] \
     72            -borderwidth 1 -relief raised -highlightthickness 0 \
     73            -command [itcl::code $this bump up]
     74    } {
     75        usual
     76        ignore -borderwidth -highlightthickness
     77        rename -background -buttonbackground buttonBackground Background
     78    }
     79    pack $itk_component(up) -side left -expand yes -fill both
     80
    6981    itk_component add down {
    7082        button $itk_component(controls).spindn \
     
    7789        rename -background -buttonbackground buttonBackground Background
    7890    }
    79     pack $itk_component(down) -side left -expand yes -fill both
    80 
    81     itk_component add up {
    82         button $itk_component(controls).spinup \
    83             -image [Rappture::icon intplus] \
    84             -borderwidth 1 -relief raised -highlightthickness 0 \
    85             -command [itcl::code $this bump up]
    86     } {
    87         usual
    88         ignore -borderwidth -highlightthickness
    89         rename -background -buttonbackground buttonBackground Background
    90     }
    91     pack $itk_component(up) -side right -expand yes -fill both
     91    pack $itk_component(down) -side right -expand yes -fill both
    9292
    9393    eval itk_initialize $args
Note: See TracChangeset for help on using the changeset viewer.