removed scaling with ctypes shcore for Windows < 8.1

This commit is contained in:
Tom Schimansky
2022-05-26 19:16:01 +02:00
parent 34da9505e9
commit a1afc3056b
6 changed files with 45 additions and 32 deletions

View File

@ -1,4 +1,5 @@
from tkinter import *
import customtkinter
ws = Tk()
ws.title('PythonGuides')
@ -13,7 +14,7 @@ countries = ['Bahamas','Canada', 'Cuba','United States']
# setting variable for Integers
variable = StringVar()
variable.set(countries[3])
variable.set("test")
# creating widget
dropdown = OptionMenu(
@ -24,7 +25,10 @@ dropdown = OptionMenu(
)
# positioning widget
dropdown.pack(expand=True)
dropdown.pack(pady=10, padx=10)
optionmenu_1 = customtkinter.CTkOptionMenu(master=ws, values=["option 1", "option 2", "number 42"])
optionmenu_1.pack(pady=10, padx=10)
# infinite loop
ws.mainloop()