Tk Source Code

View Ticket
Login
Ticket UUID: 3391905
Title: New themed range widget
Type: Patch Version: None
Submitter: glawlor Created on: 2011-08-15 12:26:59
Subsystem: 88. Themed Tk Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-08-17 12:52:27
Resolution: None Closed By: nobody
    Closed on:
Description:
A TTK widget based on scale that contains two sliders defining a range between two numbers.

Attached patch is a diff from trunk today.

Can't find any details on pushing a branch for review or the like...
User Comments: jan.nijtmans added on 2026-08-17 12:52:27:

I don't know if there is any interest for the ttk TRange widget, but I moved to implementation to be based on trunk. I'm sure things are missing, e.g. usages of SVG for the sliders (as in the TScale). If someone wants to continue ....


glawlor added on 2011-08-17 17:45:39:
Great - thanks for creating the branch. If it doesn't make the release at least if someone really wants a range widget they can checkout the branch.

The only thing wrong at the moment is that when both sliders are at the -to position, the maxslider gets the focus on the press event, rather than the minslider... the bindings move the minslider however so that the widget isn't stuck.

jenglish added on 2011-08-17 00:14:27:
Thanks for the contribution; I've committed it to the 'ttk-range-widget' branch on core.tcl.tk.

Since Tk is in the beta phase of the release cycle (which presumably means feature freeze) don't know if this will make it into 8.6 final, but it's in the repo now...

glawlor added on 2011-08-16 02:42:51:
Compiled widget on linux box - Makefile.in patch attached.

BTW, only Makefile.vc includes the new widget on Windows.

glawlor added on 2011-08-16 02:41:10:

File Added - 421223: unix.Makefile.in.patch

glawlor added on 2011-08-15 19:27:00:

File Added - 421160: ttkRange.c.patch

Attachments: