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 e3499bc + a180e1d commit c1fdefdCopy full SHA for c1fdefd
lib/matplotlib/backends/qt4_editor/formlayout.py
@@ -271,7 +271,9 @@ def setup(self):
271
elif isinstance(value, (str, unicode)):
272
field = QLineEdit(value, self)
273
elif isinstance(value, (list, tuple)):
274
- selindex = list(value).pop(0)
+ if isinstance(value, tuple):
275
+ value = list(value)
276
+ selindex = value.pop(0)
277
field = QComboBox(self)
278
if isinstance(value[0], (list, tuple)):
279
keys = [ key for key, _val in value ]
0 commit comments