diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2019-05-03 15:56:04 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-05-03 15:56:04 +0200 |
commit | ea83137c32be2f7c47e6c4e4bbfaafeb0591db21 (patch) | |
tree | acb0ee2dd3d29ee6d09dd29b234eb5a9b16eb469 /src/ui.py | |
parent | 5a952899e095c82ff706449ee4d3f8c5eaac7911 (diff) |
Bring back basic functionality
Diffstat (limited to 'src/ui.py')
-rw-r--r-- | src/ui.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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: |