From a8c13cb7de6bd63adb83a98d678edc10d6bd30e7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 29 Jul 2015 23:28:34 +0800 Subject: [PATCH] gui: fix NumberEntry min/max --- artiq/gui/explorer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gui/explorer.py b/artiq/gui/explorer.py index 6e9a81334..5954b87d5 100644 --- a/artiq/gui/explorer.py +++ b/artiq/gui/explorer.py @@ -69,7 +69,7 @@ class _NumberEntry(QtGui.QDoubleSpinBox): if procdesc["min"] is not None: self.setMinimum(procdesc["min"]) if procdesc["max"] is not None: - self.setMinimum(procdesc["max"]) + self.setMaximum(procdesc["max"]) if procdesc["unit"]: self.setSuffix(" " + procdesc["unit"]) if "default" in procdesc: