eric6/Preferences/ConfigurationPages/ConfigurationPageBase.py

branch
eric6
changeset 8758
c3f57225c305
parent 8273
698ae46f40a4
equal deleted inserted replaced
8742:f27e0226becd 8758:c3f57225c305
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