Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4e44c2 + 2fdf5d1 commit 5074303Copy full SHA for 5074303
lib/matplotlib/backends/qt_editor/formlayout.py
@@ -243,8 +243,14 @@ def setup(self):
243
elif isinstance(value, str):
244
field = QtWidgets.QLineEdit(value, self)
245
elif isinstance(value, (list, tuple)):
246
+ if isinstance(value, tuple):
247
+ value = list(value)
248
+ # Note: get() below checks the type of value[0] in self.data so
249
+ # it is essential that value gets modified in-place.
250
+ # This means that the code is actually broken in the case where
251
+ # value is a tuple, but fortunately we always pass a list...
252
+ selindex = value.pop(0)
253
field = QtWidgets.QComboBox(self)
- selindex, *value = value
254
if isinstance(value[0], (list, tuple)):
255
keys = [key for key, _val in value]
256
value = [val for _key, val in value]
0 commit comments