Skip to content

Commit

Permalink
Fix python strict type checking in Python 3.9+
Browse files Browse the repository at this point in the history
Python 3.9+ started doing strict enforcement of types.  This results in the GUI function methods not functioning properly in modern Python environments.

Fixes torproject#628

Thanks to @icceland in bug 628 for the fix stated in the bug.
  • Loading branch information
teward committed Aug 7, 2022
1 parent 4b9d49c commit 5fcf8f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torbrowser_launcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def main():
desktop = app.desktop()
window_size = gui.size()
gui.move(
(desktop.width() - window_size.width()) / 2,
(desktop.height() - window_size.height()) / 2,
(desktop.width() - window_size.width()) // 2,
(desktop.height() - window_size.height()) // 2,
)
gui.show()

Expand Down

0 comments on commit 5fcf8f8

Please sign in to comment.