summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2019-05-03 01:33:59 +0200
committerPaweł Redman <pawel.redman@gmail.com>2019-05-03 01:33:59 +0200
commit3d2e11a1eba4e8b5ff411c9d1e4be61f2c6321e8 (patch)
tree0b45ef1e9510d26e14bbda5678dc698ac3e37a59
parent1c137af4c4049bad85511e584b8b5739e03ee5e4 (diff)
Minor ui fixes
-rw-r--r--src/ui.py4
1 files 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)