eric6/Preferences/ConfigurationPages/ConfigurationPageBase.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
89 colDlg.setOptions(QColorDialog.ShowAlphaChannel) 89 colDlg.setOptions(QColorDialog.ShowAlphaChannel)
90 # Set current colour last to avoid conflicts with alpha channel 90 # Set current colour last to avoid conflicts with alpha channel
91 colDlg.setCurrentColor(self.__coloursDict[colorKey][0]) 91 colDlg.setCurrentColor(self.__coloursDict[colorKey][0])
92 colDlg.currentColorChanged.connect( 92 colDlg.currentColorChanged.connect(
93 lambda col: self.colourChanged.emit(colorKey, col)) 93 lambda col: self.colourChanged.emit(colorKey, col))
94 colDlg.exec_() 94 colDlg.exec()
95 95
96 if colDlg.result() == colDlg.Accepted: 96 if colDlg.result() == colDlg.Accepted:
97 colour = colDlg.selectedColor() 97 colour = colDlg.selectedColor()
98 size = button.iconSize() 98 size = button.iconSize()
99 pm = QPixmap(size.width(), size.height()) 99 pm = QPixmap(size.width(), size.height())

eric ide

mercurial