修复basicwin
Build and Publish / Run (push) Successful in 57s Details

This commit is contained in:
cxykevin 2024-04-27 22:04:26 +08:00
parent 8887f47359
commit a7a4be2dab
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ class Tk(ttk.Frame):
self.place(x=0, y=0, relwidth=1, relheight=1) self.place(x=0, y=0, relwidth=1, relheight=1)
self.main_tk.geometry( self.main_tk.geometry(
f"{self.w}x{self.h}+{self.x}+{self.y}") f"{self.w}x{self.h}+{self.x}+{self.y}")
self.main_tk.protocol("WM_DELETE_WINDOW", lambda *args: self.quit())
def mainloop(self) -> None: def mainloop(self) -> None:
t_start = time.time() t_start = time.time()