IconEditor/IconEditorPalette.py

changeset 414
8c91e942d2da
parent 13
1af94a91f439
child 464
a2b1d1770ef0
equal deleted inserted replaced
413:3d82e6eb3516 414:8c91e942d2da
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 """

eric ide

mercurial