Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4213c20

Browse files
committed
adds _enum qualifier for QColorDialog.ShowAlphaChannel
1 parent b52b2a0 commit 4213c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt_editor/_formlayout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, parent=None):
7171
def choose_color(self):
7272
color = QtWidgets.QColorDialog.getColor(
7373
self._color, self.parentWidget(), "",
74-
QtWidgets.QColorDialog.ShowAlphaChannel)
74+
_enum("QtWidgets.QColorDialog.ColorDialogOption").ShowAlphaChannel)
7575
if color.isValid():
7676
self.set_color(color)
7777

0 commit comments

Comments
 (0)