From 3d2e11a1eba4e8b5ff411c9d1e4be61f2c6321e8 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 3 May 2019 01:33:59 +0200 Subject: Minor ui fixes --- src/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui.py b/src/ui.py index c5f1b59..f54134f 100644 --- a/src/ui.py +++ b/src/ui.py @@ -93,10 +93,10 @@ class ElementEditorWindow(QMainWindow): root.addLayout(box) box.addWidget(QLabel("T")) - self.t1 = QLineEdit("1") + self.t1 = QLineEdit("%g" % self.pol.t1) self.t1.textChanged.connect(self.change_t) box.addWidget(self.t1) - self.t2 = QLineEdit("0") + self.t2 = QLineEdit("%g" % self.pol.t2) self.t2.textChanged.connect(self.change_t) box.addWidget(self.t2) -- cgit