aboutsummaryrefslogtreecommitdiff
path: root/components/__base__.py
diff options
context:
space:
mode:
authortassaron2017-06-11 12:52:29 -0400
committertassaron2017-06-11 12:52:29 -0400
commitbe5d47f8634d29d58b9811657ede815814ffde18 (patch)
tree50f32b1e45c5088ce5e2da823e8a7dedc7d3d06b /components/__base__.py
parent59c2c090ab9275bc1146329536d43855a46d34f4 (diff)
can't right-click empty space + color eyedropper
Diffstat (limited to 'components/__base__.py')
-rw-r--r--components/__base__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/__base__.py b/components/__base__.py
index b95edf4..3ccb5dc 100644
--- a/components/__base__.py
+++ b/components/__base__.py
@@ -24,7 +24,9 @@ class Component:
exec('self.%s = value' % var)
def pickColor(self):
- color = QtGui.QColorDialog.getColor()
+ dialog = QtGui.QColorDialog()
+ dialog.setOption(QtGui.QColorDialog.ShowAlphaChannel, True)
+ color = dialog.getColor()
if color.isValid():
RGBstring = '%s,%s,%s' % (
str(color.red()), str(color.green()), str(color.blue()))