Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use state change hook on RE rather than timer to sync GUI/RE state #65

Open
tacaswell opened this issue Jan 18, 2018 · 1 comment
Open

Comments

@tacaswell
Copy link
Member

See https://github.com/NSLS-II-XFP/profile_collection/blob/2c3abb38a15e043ee1f329f0176297a1f9cb3f75/startup/99-gui.py#L145

        RE.state_hook = self.handle_state_change
@tacaswell
Copy link
Member Author

Done here currently:

isstools/isstools/gui.py

Lines 96 to 100 in 3277c50

if self.RE is not None:
self.RE.is_aborted = False
self.timer = QtCore.QTimer()
self.timer.timeout.connect(self.update_re_state)
self.timer.start(1000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant