Export to GitHub

python-ttk - issue #2

ttk.Style().lookup fails


Posted on Jun 8, 2008 by Happy Cat

What steps will reproduce the problem? 1.Accessing the options set for a style using the documented example print ttk.Style().lookup('TButton', 'font') or similar 2. 3.

What is the expected output? What do you see instead? Expected output is the value for the option Output obtained is nothing - no result, no error

What version of the product are you using? On what operating system? Using the 7 June version of the package with Python 2.5.1, tk 8.4 and tile 0.8.2

Please provide any additional information below.

Comment #1

Posted on Jun 8, 2008 by Quick Horse

Indeed it was wrong, the workaround is to pass the option as '-option' and the solution is to update to the current version now. Fixed in r64026 (http://svn.python.org/view?rev=64026&view=rev)

Thanks.

Status: Fixed

Labels:
Type-Defect Priority-Medium