mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
26 lines
1003 B
Python
26 lines
1003 B
Python
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)
|
|
|
|
progressbar_1 = customtkinter.CTkProgressBar(app, orientation="horizontal")
|
|
progressbar_1.grid(row=0, column=0, pady=20, padx=20)
|
|
|
|
progressbar_2 = customtkinter.CTkProgressBar(app, orientation="vertical")
|
|
progressbar_2.grid(row=1, column=0, pady=20, padx=20)
|
|
|
|
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)
|
|
|
|
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()
|