summaryrefslogtreecommitdiff
path: root/src/ui.py
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2019-05-03 15:56:04 +0200
committerPaweł Redman <pawel.redman@gmail.com>2019-05-03 15:56:04 +0200
commitea83137c32be2f7c47e6c4e4bbfaafeb0591db21 (patch)
treeacb0ee2dd3d29ee6d09dd29b234eb5a9b16eb469 /src/ui.py
parent5a952899e095c82ff706449ee4d3f8c5eaac7911 (diff)
Bring back basic functionality
Diffstat (limited to 'src/ui.py')
-rw-r--r--src/ui.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui.py b/src/ui.py
index fb0932a..77f36fc 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -41,7 +41,7 @@ from ui_table import *
def update():
for i, pol in enumerate(system.elements):
- row = GUI.table_rows[i]
+ row = GUI.table.rows[i]
if pol.ref is not False:
pol.angle += system.elements[pol.ref].angle
@@ -50,7 +50,7 @@ def update():
I = 1
for i, pol in enumerate(system.elements):
- row = GUI.table_rows[i]
+ row = GUI.table.rows[i]
# update all the diagrams
row.ellipse.state = system.states[i]
@@ -91,6 +91,8 @@ def update():
#if GUI.auto_optimize.isChecked():
# optimize()
+GUI.do_update = update
+
def half_assed_element_creation(index=None):
pol = phys.Polarizer("linear")
@@ -312,8 +314,7 @@ class MainWindow(QMainWindow):
rhs.addWidget(GUI.widok)
GUI.table.populate(system)
-
- #update()
+ update()
def change_input_intensity(self):
try: