Tk Library Source Code

View Ticket
Login
2026-11-15
23:40 • Ticket [7ae7ab1e83] rdial "can't read 'sfact'" with tkinter error status still Open with 3 other changes artifact: 1b7fe013c7 user: serhiy.storchaka
23:31
Fix [7ae7ab1e83]: controlwidget::rdial failed with the default -width (can't read "sfact"). The scale factor was only computed when -width was given; compute it in the constructor too. Add controlwidget.test. leaf check-in: bb38f4cff1 user: serhiy.storchaka tags: rdial-default-width
2019-07-19
15:00 • New ticket [7ae7ab1e83] rdial "can't read 'sfact'" with tkinter error. artifact: adf12802a0 user: anonymous

Ticket UUID: 7ae7ab1e83347f7c93243439437e60b9720c7cbd
Title: rdial "can't read 'sfact'" with tkinter error
Type: Bug Version: 0.6
Submitter: anonymous Created on: 2019-07-19 15:00:52
Subsystem: tklib :: controlwidget Assigned To: nobody
Priority: 5 Medium Severity: Critical
Status: Open Last Modified: 2026-11-15 23:40:01
Resolution: None Closed By: nobody
    Closed on:
Description:
'File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 2299, in __init__
    (widgetName, self._w) + extra + self._options(cnf))
_tkinter.TclError: Error in constructor: can't read "sfact": no such variable'

I can't seem to create this widget without this error.  Other widgets in the controlwidget package work without error.
User Comments: serhiy.storchaka added on 2026-11-15 23:40:01:

Proposed fix in branch rdial-default-width.

Nothing specific to tkinter: rdial failed whenever -width was not given, because the scale factor was only computed when the option was set. It is now also computed in the constructor.