def slotExportBackgroundChanged(self): """Button clicked to change background.""" color = qt4.QColorDialog.getColor( utils.extendedColorToQColor(self.exportBackgroundButton.iconcolor), self, "Choose color", qt4.QColorDialog.ShowAlphaChannel) if color.isValid(): self.updateExportBackground(utils.extendedColorFromQColor(color))
def slotExportBackgroundChanged(self): """Button clicked to change background.""" color = qt4.QColorDialog.getColor( utils.extendedColorToQColor(self.exportBackgroundButton.iconcolor), self, "Choose color", qt4.QColorDialog.ShowAlphaChannel ) if color.isValid(): self.updateExportBackground( utils.extendedColorFromQColor(color) )