Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anh committed Aug 18, 2023
1 parent d0fe3ac commit 4f988e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ test11:
# will run the plot when run is clicked
## test12: pyqt native, athena style
test12:
./pyqt_run.py athinput.linear_wave1d -r
./pyqt_run.py athinput.linear_wave1d

## test13: pyqg, athena style
test13: athena_problems.json
Expand Down
1 change: 1 addition & 0 deletions pyqt_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from subprocess import Popen, PIPE
from re import match
from sys import argv
from os import path

# parse arguments
argparser = ArgumentParser(description='Runs the GUI for configuring an athinput file')
Expand Down
2 changes: 2 additions & 0 deletions pysg_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ def update_tk_sliders(f):
# primary event loop
while True:
event, values = window.read()
print(event)
if event == sg.WIN_CLOSED or event in ('Quit', 'Close', 'Close All Plots'):
if event == 'Close All Plots':
for plot in plots: # inefficient
Expand Down Expand Up @@ -438,6 +439,7 @@ def update_tk_sliders(f):
slider = window[key]
value = float(values[event]) * sliders[key]['factor']
m, M = slider.Range
print(m, value, M)
if m <= value <= M:
forced_slider = True
slider.update(int(value) if value.is_integer() else value)
Expand Down

0 comments on commit 4f988e0

Please sign in to comment.