summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)