mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
removed scaling with ctypes shcore for Windows < 8.1
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user