96 pm = QPixmap(90, 18) |
96 pm = QPixmap(90, 18) |
97 pm.fill(color) |
97 pm.fill(color) |
98 self.__color.setPixmap(pm) |
98 self.__color.setPixmap(pm) |
99 |
99 |
100 self.__colorTxt.setText( |
100 self.__colorTxt.setText( |
101 "%d, %d, %d, %d" % (color.red(), color.green(), color.blue(), color.alpha())) |
101 "{0:d}, {1:d}, {2:d}, {3:d}".format( |
|
102 color.red(), color.green(), color.blue(), color.alpha())) |
102 |
103 |
103 self.__colorAlpha.setValue(self.__currentAlpha) |
104 self.__colorAlpha.setValue(self.__currentAlpha) |
104 |
105 |
105 def __selectColor(self): |
106 def __selectColor(self): |
106 """ |
107 """ |