Fixed a Python 3.10 related issue. eric7

Mon, 01 Nov 2021 19:45:18 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 01 Nov 2021 19:45:18 +0100
branch
eric7
changeset 8755
30f52c9d5153
parent 8754
e7d63a5a2ae9
child 8756
8bea096a0f24

Fixed a Python 3.10 related issue.

eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py file | annotate | diff | comparison | revisions
diff -r e7d63a5a2ae9 -r 30f52c9d5153 eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py
--- a/eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py	Mon Nov 01 17:04:14 2021 +0100
+++ b/eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py	Mon Nov 01 19:45:18 2021 +0100
@@ -62,7 +62,7 @@
         """
         colour = QColor(prefMethod(colourKey))
         size = button.size()
-        pm = QPixmap(size.width() / 2, size.height() / 2)
+        pm = QPixmap(size.width() // 2, size.height() // 2)
         pm.fill(colour)
         button.setIconSize(pm.size())
         button.setIcon(QIcon(pm))

eric ide

mercurial