small fixes in examples

This commit is contained in:
Tom Schimansky
2022-05-30 14:35:33 +02:00
parent cf6f513afc
commit aa46c56da9
3 changed files with 6 additions and 12 deletions

View File

@ -16,7 +16,6 @@ class App(customtkinter.CTk):
self.title("CustomTkinter complex_example.py")
self.geometry(f"{App.WIDTH}x{App.HEIGHT}")
self.protocol("WM_DELETE_WINDOW", self.on_closing) # call .on_closing() when app gets closed
# ============ create two frames ============
@ -196,10 +195,7 @@ class App(customtkinter.CTk):
def on_closing(self, event=0):
self.destroy()
def start(self):
self.mainloop()
if __name__ == "__main__":
app = App()
app.start()
app.mainloop()