mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
added orientation for CTkSLider, CTkProgressBar
This commit is contained in:
25
test/manual_integration_tests/test_ctk_toplevel.py
Normal file
25
test/manual_integration_tests/test_ctk_toplevel.py
Normal file
@@ -0,0 +1,25 @@
|
||||
import tkinter
|
||||
import customtkinter
|
||||
|
||||
|
||||
class ExampleApp(customtkinter.CTk):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
self.geometry("500x400")
|
||||
|
||||
self.button_1 = customtkinter.CTkButton(self, text="Create CTkToplevel", command=self.create_toplevel)
|
||||
self.button_1.pack(side="top", padx=40, pady=40)
|
||||
|
||||
def create_toplevel(self):
|
||||
window = customtkinter.CTkToplevel(self)
|
||||
window.geometry("400x200")
|
||||
|
||||
print(window.master.winfo_class())
|
||||
|
||||
label = customtkinter.CTkLabel(window, text="CTkToplevel window")
|
||||
label.pack(side="top", fill="both", expand=True, padx=40, pady=40)
|
||||
|
||||
|
||||
app = ExampleApp()
|
||||
app.mainloop()
|
||||
Reference in New Issue
Block a user