added draw_rounded_rect_with_border_vertical_split() function to DrawEngine

This commit is contained in:
Tom Schimansky
2022-05-25 17:04:00 +02:00
parent 4b3b406250
commit 1fed35a193
4 changed files with 352 additions and 42 deletions

View File

@@ -0,0 +1,30 @@
from tkinter import *
ws = Tk()
ws.title('PythonGuides')
ws.geometry('400x300')
ws.config(bg='#F2B90C')
def display_selected(choice):
choice = variable.get()
print(choice)
countries = ['Bahamas','Canada', 'Cuba','United States']
# setting variable for Integers
variable = StringVar()
variable.set(countries[3])
# creating widget
dropdown = OptionMenu(
ws,
variable,
*countries,
command=display_selected
)
# positioning widget
dropdown.pack(expand=True)
# infinite loop
ws.mainloop()