Skip to content

Commit

Permalink
Corrected some method references in Winforms backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Feb 19, 2024
1 parent 1079c27 commit ec11054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions winforms/src/toga_winforms/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ def _run_app(self): # pragma: no cover

# This catches errors in handlers, and prints them
# in a usable form.
self.native.ThreadException += WeakrefCallable(
self.winforms_thread_exception
)
self.native.ThreadException += WeakrefCallable(winforms_thread_exception)

self.loop.run_forever(self)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion winforms/tests_backend/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def content_size(self):
return (
(self.native.ClientSize.Width) / self.scale_factor,
(
(self.native.ClientSize.Height - self.impl.top_bars_height())
(self.native.ClientSize.Height - self.impl._top_bars_height())
/ self.scale_factor
),
)
Expand Down

0 comments on commit ec11054

Please sign in to comment.