CustomTkinter/test/manual_integration_tests/test_vertical_widgets.py

26 lines
1003 B
Python
Raw Normal View History

import customtkinter
app = customtkinter.CTk() # create CTk window like you do with the Tk window (you can also use normal tkinter.Tk window)
app.geometry("400x650")
app.title("test_vertical_widgets")
app.grid_columnconfigure(0, weight=1)
app.grid_rowconfigure((0, 1, 2, 3), weight=1)
2022-11-11 15:06:26 +03:00
progressbar_1 = customtkinter.CTkProgressBar(app, orientation="horizontal")
progressbar_1.grid(row=0, column=0, pady=20, padx=20)
2022-11-11 15:06:26 +03:00
progressbar_2 = customtkinter.CTkProgressBar(app, orientation="vertical")
progressbar_2.grid(row=1, column=0, pady=20, padx=20)
2022-11-11 15:06:26 +03:00
slider_1 = customtkinter.CTkSlider(app, orientation="horizontal", command=progressbar_1.set,
button_corner_radius=3, button_length=20)
slider_1.grid(row=2, column=0, pady=20, padx=20)
2022-11-11 15:06:26 +03:00
slider_2 = customtkinter.CTkSlider(app, orientation="vertical", command=progressbar_2.set,
button_corner_radius=3, button_length=20)
slider_2.grid(row=3, column=0, pady=20, padx=20)
app.mainloop()