mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
added configurable dimensions to some widgets
This commit is contained in:
36
test/manual_integration_tests/test_configure_dimensions.py
Normal file
36
test/manual_integration_tests/test_configure_dimensions.py
Normal file
@ -0,0 +1,36 @@
|
||||
import customtkinter
|
||||
import random
|
||||
|
||||
|
||||
app = customtkinter.CTk()
|
||||
app.geometry("400x400")
|
||||
|
||||
|
||||
def button_callback():
|
||||
button_1.configure(width=random.randint(30, 200), height=random.randint(30, 60))
|
||||
frame_1.configure(width=random.randint(30, 200), height=random.randint(30, 200))
|
||||
label_1.configure(width=random.randint(30, 200), height=random.randint(30, 40))
|
||||
entry_1.configure(width=random.randint(30, 200), height=random.randint(30, 40))
|
||||
progressbar_1.configure(width=random.randint(30, 200), height=random.randint(10, 16))
|
||||
slider_1.configure(width=random.randint(30, 200), height=random.randint(14, 20))
|
||||
|
||||
|
||||
button_1 = customtkinter.CTkButton(app, text="button_1", command=button_callback)
|
||||
button_1.pack(pady=10)
|
||||
|
||||
frame_1 = customtkinter.CTkFrame(app)
|
||||
frame_1.pack(pady=10)
|
||||
|
||||
label_1 = customtkinter.CTkLabel(app, fg_color="green")
|
||||
label_1.pack(pady=10)
|
||||
|
||||
entry_1 = customtkinter.CTkEntry(app, placeholder_text="placeholder")
|
||||
entry_1.pack(pady=10)
|
||||
|
||||
progressbar_1 = customtkinter.CTkProgressBar(app)
|
||||
progressbar_1.pack(pady=10)
|
||||
|
||||
slider_1 = customtkinter.CTkSlider(app)
|
||||
slider_1.pack(pady=10)
|
||||
|
||||
app.mainloop()
|
Reference in New Issue
Block a user