[New-bugs-announce] [issue39152] Faulty override of tkinter.Misc.configure in tkinter.ttk.Scale.configure

Giovanni Lombardo report at bugs.python.org
Sun Dec 29 08:05:33 EST 2019


New submission from Giovanni Lombardo <g.lombardo at protonmail.com>:

The issue arises by simply calling configure on the Scale widget of the themed tk (ttk) widgets set:

```
cursor = scale.configure('cursor')[-1]
```

The above casues the following error:

```
File "C:\Users\Giovanni\Tests\test_scale.py", line 604, in main
    cursor = scale.configure('cursor')[-1]
File "C:\Users\Giovanni\AppData\Local\Programs\Python\Python37\lib\tkinter\ttk.py", line 1090, in configure
    kw.update(cnf)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
```

The interpreter is:

```
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32```

----------
components: Tkinter
messages: 358987
nosy: glombardo
priority: normal
severity: normal
status: open
title: Faulty override of tkinter.Misc.configure in tkinter.ttk.Scale.configure
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39152>
_______________________________________


More information about the New-bugs-announce mailing list