Skip to content

Commit

Permalink
fix: 优化on_win_event
Browse files Browse the repository at this point in the history
  • Loading branch information
tangwuhong committed Jun 12, 2024
1 parent e929544 commit 1a03be3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,16 +526,12 @@ def on_win_event(self, e):
page.window_top = self.window_top
page.window_left = self.window_left

elif e.data == "resized":
else:
self.page_width = page.window_width
self.page_height = page.window_height
self.window_top = page.window_top
self.window_left = page.window_left

elif e.data == "moved":
self.window_top = page.window_top
self.window_left = page.window_left

page.update()


Expand Down

0 comments on commit 1a03be3

Please sign in to comment.