src/eric7/Preferences/ConfigurationPages/ConfigurationPageBase.py

branch
eric7
changeset 11006
a671918232f3
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
86 @type QPushButton 86 @type QPushButton
87 """ 87 """
88 colorKey = button.property("colorKey") 88 colorKey = button.property("colorKey")
89 hasAlpha = button.property("hasAlpha") 89 hasAlpha = button.property("hasAlpha")
90 90
91 colDlg = QColorDialog(self) 91 colDlg = QColorDialog(parent=self)
92 if hasAlpha: 92 if hasAlpha:
93 colDlg.setOptions(QColorDialog.ColorDialogOption.ShowAlphaChannel) 93 colDlg.setOptions(QColorDialog.ColorDialogOption.ShowAlphaChannel)
94 # Set current color last to avoid conflicts with alpha channel 94 # Set current color last to avoid conflicts with alpha channel
95 colDlg.setCurrentColor(self.__coloursDict[colorKey][0]) 95 colDlg.setCurrentColor(self.__coloursDict[colorKey][0])
96 colDlg.currentColorChanged.connect( 96 colDlg.currentColorChanged.connect(

eric ide

mercurial