Tk Source Code

View Ticket
Login
Ticket UUID: 1096323
Title: Support hexadecimal (and other integer) formats
Type: RFE Version: None
Submitter: dkf Created on: 2005-01-05 09:36:01
Subsystem: 17. [spinbox] Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Open Last Modified: 2005-01-06 00:44:46
Resolution: None Closed By:
    Closed on:
Description:
Tcler's Chat Log:

[09:19]sbDoes somebody here know what needs to be
done to make a spinbox display its value in hexadecimal?
[09:19]arjenFrom Bwidget?
[09:19]sbNo, the builtin Tk one.
[09:19]arjenOh, have you checked the man pages?
[09:20]sbYes. The format parameter sounds promising,
but it should be a format specifier that accepts floats.
[09:20]arjenYes, I see that too
[09:21]arjenUse -values?
[09:21]arjen-values {0 1 2 3 4 5 6 7 8 9 a B C D E F} ?
[09:21]sbI want the spinbox to go from 0000 to FFFF.
[09:21]arjenUse a long list 
[09:22]sbI hope there is a better way.
[09:22]sbI have tried using the command parameter,
but then after 000A it goes back to 0000.
[09:24]Ladies and Gentlemen, <NewGuy`> has left the
building!
[09:24]dkfHmm, sounds like time for a feature request...
User Comments: hobbs added on 2005-01-06 00:44:46:
Logged In: YES 
user_id=72656

that would entail making the -from -to be more int aware,
and adding %x to the -format.  Maybe easy, maybe not.