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

Skip to content

Commit 17a1d11

Browse files
committed
Remove a conditional expression that was introduced in a recent patch.
1 parent 9b28197 commit 17a1d11

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/matplotlib/backends/qt4_editor/formlayout.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,10 @@ def setup(self):
273273
field.setCurrentIndex(selindex)
274274
elif isinstance(value, bool):
275275
field = QCheckBox(self)
276-
field.setCheckState(Qt.Checked if value else Qt.Unchecked)
276+
if value :
277+
field.setCheckState(Qt.Checked)
278+
else :
279+
field.setCheckState(Qt.Unchecked)
277280
elif isinstance(value, float):
278281
field = QLineEdit(repr(value), self)
279282
elif isinstance(value, int):

0 commit comments

Comments
 (0)