Fixed a Python 3.10 compatibility issue in the web browser. eric7

Thu, 19 May 2022 10:45:41 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 19 May 2022 10:45:41 +0200
branch
eric7
changeset 9077
33827549f187
parent 9076
eb1f2c09db70
child 9079
1311dc91e846
child 9080
4cadd6b03e82

Fixed a Python 3.10 compatibility issue in the web browser.

eric7/WebBrowser/WebBrowserPage.py file | annotate | diff | comparison | revisions
--- a/eric7/WebBrowser/WebBrowserPage.py	Thu May 19 10:11:59 2022 +0200
+++ b/eric7/WebBrowser/WebBrowserPage.py	Thu May 19 10:45:41 2022 +0200
@@ -392,8 +392,8 @@
         @return viewport position
         @rtype QPoint
         """
-        return QPoint(pos.x() // self.zoomFactor(),
-                      pos.y() // self.zoomFactor())
+        return QPoint(int(pos.x() // self.zoomFactor()),
+                      int(pos.y() // self.zoomFactor()))
     
     def hitTestContent(self, pos):
         """

eric ide

mercurial