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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.