pypy / pypy.org

Sources for website at https://www.pypy.org
33 stars 11 forks source link

about tkinter #14

Closed 52LY closed 3 years ago

52LY commented 3 years ago

my code:

D:\pypy37_v734rc1_win64>pypy3
Python 3.7.10 (465347ee258a, Mar 19 2021, 05:27:08)
[PyPy 7.3.4 with MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> import tkinter as tk
>>>> from tkinter import ttk
>>>> win = tk.Tk()
>>>> win.title("TTK_GUI")
''
>>>> s=ttk.Style()
>>>> print(s.theme_names())
('winnative', 'clam', 'alt', 'default', 'classic')
>>>>

s.theme_names() ==> ('winnative', 'clam', 'alt', 'default', 'classic') why no 'vista'

this is Python code

D:\pypy37_v734rc1_win64>python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter as tk
>>> from tkinter import ttk
>>> win = tk.Tk()
>>> win.title("TTK_GUI")
''
>>> s=ttk.Style()
>>> print(s.theme_names())
('winnative', 'clam', 'alt', 'default', 'classic', 'vista', 'xpnative')
>>>

s.theme_names() ==> ('winnative', 'clam', 'alt', 'default', 'classic', 'vista', 'xpnative')

mattip commented 3 years ago

Thanks for trying out the release candidate.

Please open an issue on the PyPy issue tracker. This repo is about the pypy.org website and blog only.

With that, it may be some problem with the compilation of tkinter since the vista theme has a hint about C needed in this note in it

# The Vista theme can only be defined on Windows Vista and above. The theme
# is created in C due to the need to assign a theme-enabled function for 
# detecting when themeing is disabled. On systems that cannot support the
# Vista theme, there will be no such theme created and we must not
# evaluate this script.