Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 79c8de013905b5228fe84969773cfba262f0eedc
Ticket: 840150ffffffffffffffffffffffffffffffffff
spnibox -from and -to defaults/behaviour
User & Date: oox on 2003-11-11 18:17:52
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I want to configure the allowed range for a spinbox from 
    10 to 20:
    
       % info tclversion
       8.4
       (bin) 2 % spinbox .s
       .s
       (bin) 3 % .s configure -from 10
       -to value must be greater than -from value
    
    As the defaults for Tk's spinbox -from and -to are both 
    zero, it follows that I'm forced to first change the -to 
    value followed by the -from one, or change both at 
    once. My impression is that the defaults should be from 
    MININT to MAXINT or some such. Notice that the 
    defaults for Tk's scale -from and -to are 0.0 and 100.0, 
    respectively.
    
    Other solution suggested in comp.lang.tcl was the 
    following: rather than bailing out, autoadjust 
    the "other" end to be equal to the one currently set. 
    (except if both are set in one go)
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "oox"
  9. subsystem changed to: "None"
  10. title changed to: "spnibox -from and -to defaults/behaviour"
  11. type changed to: "Bug"