Tk ttk::scale and ttk::progressbar broken running under 64-bit
Tk ttk::scale and ttk::progressbar broken running under 64-bit
- Subject: Tk ttk::scale and ttk::progressbar broken running under 64-bit
- From: Matt Haffner <email@hidden>
- Date: Fri, 22 Jan 2010 23:17:26 -0600
Hi,
I filed a bug report with Apple (#7368376) back in November but haven't seen any responses on it yet. So I wanted to make a pitch here as well to fix this bug present in Tk 8.5.7 (default 10.6 through 10.6.2):
https://sourceforge.net/tracker/?func=detail&aid=2883712&group_id=12997&atid=112997
It breaks the ttk::scale and ttk::progressbar widget controls when running wish as a 64-bit app with the default ttk aqua theme. The value range to screen scaling is broken due to a large-valued long to SInt32 cast, and controls are displayed pinned to the min or max range of the widget.
An example script is attached below: try moving the scale slider and note that the progress bar should be increasing each 0.1 seconds. Uncomment the final line of the script to see the expected behavior using another ttk theme.
A fix is included in Tcl/Tk 8.5.8, recently released, which may be an easy solution if that update could be folded in to Darwin. Alternatively, the specific bug could be fixed in Darwin's Tcl/Tk 8.5.7 by applying the following patch:
http://tktoolkit.cvs.sourceforge.net/viewvc/tktoolkit/tk/macosx/ttkMacOSXTheme.c?r1=1.28&r2=1.29
Thanks for any help injecting this into a release!
mh
--
Matt Haffner University of Wisconsin--Madison
email@hidden Department of Astronomy
http://www.astro.wisc.edu/wham WHAM Project
http://www.astro.wisc.edu/~haffner/public.key PGP
Attachment:
ttk-scale-progress-bug.tcl
Description: Binary data
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden