2022-05-16 17:51:19 +03:00
|
|
|
import customtkinter
|
|
|
|
|
2022-05-22 21:26:31 +03:00
|
|
|
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")
|
2022-05-16 17:51:19 +03:00
|
|
|
|
2022-05-22 21:26:31 +03:00
|
|
|
app.grid_columnconfigure(0, weight=1)
|
|
|
|
app.grid_rowconfigure((0, 1, 2, 3), weight=1)
|
2022-05-16 17:51:19 +03:00
|
|
|
|
2022-05-22 21:26:31 +03:00
|
|
|
progressbar_1 = customtkinter.CTkProgressBar(app, orient="horizontal")
|
2022-05-16 17:51:19 +03:00
|
|
|
progressbar_1.grid(row=0, column=0, pady=20, padx=20)
|
|
|
|
|
2022-05-22 21:26:31 +03:00
|
|
|
progressbar_2 = customtkinter.CTkProgressBar(app, orient="vertical")
|
2022-05-16 17:51:19 +03:00
|
|
|
progressbar_2.grid(row=1, column=0, pady=20, padx=20)
|
|
|
|
|
2022-05-22 21:26:31 +03:00
|
|
|
slider_1 = customtkinter.CTkSlider(app, orient="horizontal", command=progressbar_1.set,
|
2022-05-22 02:55:58 +03:00
|
|
|
button_corner_radius=3, button_length=20)
|
2022-05-16 17:51:19 +03:00
|
|
|
slider_1.grid(row=2, column=0, pady=20, padx=20)
|
|
|
|
|
2022-05-22 21:26:31 +03:00
|
|
|
slider_2 = customtkinter.CTkSlider(app, orient="vertical", command=progressbar_2.set,
|
2022-05-22 02:55:58 +03:00
|
|
|
button_corner_radius=3, button_length=20)
|
2022-05-16 17:51:19 +03:00
|
|
|
slider_2.grid(row=3, column=0, pady=20, padx=20)
|
|
|
|
|
|
|
|
|
2022-05-22 21:26:31 +03:00
|
|
|
app.mainloop()
|