From 17a1d1163a6403bd3a97982125dae8345b631e53 Mon Sep 17 00:00:00 2001 From: Ben Root Date: Thu, 3 Mar 2011 16:26:09 -0600 Subject: [PATCH] Remove a conditional expression that was introduced in a recent patch. --- lib/matplotlib/backends/qt4_editor/formlayout.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/qt4_editor/formlayout.py b/lib/matplotlib/backends/qt4_editor/formlayout.py index 271185e175d5..7ea016bbeabf 100644 --- a/lib/matplotlib/backends/qt4_editor/formlayout.py +++ b/lib/matplotlib/backends/qt4_editor/formlayout.py @@ -273,7 +273,10 @@ def setup(self): field.setCurrentIndex(selindex) elif isinstance(value, bool): field = QCheckBox(self) - field.setCheckState(Qt.Checked if value else Qt.Unchecked) + if value : + field.setCheckState(Qt.Checked) + else : + field.setCheckState(Qt.Unchecked) elif isinstance(value, float): field = QLineEdit(repr(value), self) elif isinstance(value, int): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy