eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py

branch
eric7
changeset 8755
30f52c9d5153
parent 8319
ea11a3948f40
child 8869
3dbb04832c21
equal deleted inserted replaced
8754:e7d63a5a2ae9 8755:30f52c9d5153
60 (boolean) 60 (boolean)
61 @param hasAlpha flag indicating to allow alpha channel (boolean) 61 @param hasAlpha flag indicating to allow alpha channel (boolean)
62 """ 62 """
63 colour = QColor(prefMethod(colourKey)) 63 colour = QColor(prefMethod(colourKey))
64 size = button.size() 64 size = button.size()
65 pm = QPixmap(size.width() / 2, size.height() / 2) 65 pm = QPixmap(size.width() // 2, size.height() // 2)
66 pm.fill(colour) 66 pm.fill(colour)
67 button.setIconSize(pm.size()) 67 button.setIconSize(pm.size())
68 button.setIcon(QIcon(pm)) 68 button.setIcon(QIcon(pm))
69 button.setProperty("colorKey", colourKey) 69 button.setProperty("colorKey", colourKey)
70 button.setProperty("hasAlpha", hasAlpha) 70 button.setProperty("hasAlpha", hasAlpha)

eric ide

mercurial