Skip to content

Add an update timer to RunWidget - #225

Merged
rocco8773 merged 9 commits into
mainfrom
runwidget_update_timer
Sep 10, 2026
Merged

rocco8773 merged 9 commits into
mainfrom
runwidget_update_timer

Conversation

@rocco8773

@rocco8773 rocco8773 commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

This PR adds an update QTimer to RunWidget which allows the motion group list box reflect the active status of all motion groups.


  • RMObject.replace_rm : Forcibly terminate a motion group that does not fully connect during initialization.
  • RMObject.run : Forcibly terminate a motion group that does not fully connect during a run/restart.
  • RunWidget.update_display_mg_list
    • Add unique cases (and icons) for motion group states terminated and not connected.
    • Add kwarg rewrite (default True). If True, then the list box contents will be fully re-written. If False, then the routine will try to just update current list box contents. The latter is needed, since the item selection state gets reset every time the list box is re-populated. If the update timer always re-populated, then the user could not select a motion group to configure.
  • RunWidget.update_display_timer
    • Created attributer update_display_timer (QTimer instance) that requests a refresh of the motion group list box every 500 ms.
    • Created @Slot _handle_update_display_timer, which is connected to update_display_timer.timeout. It initiates the motion group list box update.
    • The timer automatically starts when RunWidget is initialized.
  • ConfigureGUI
    • The RunWidget timer is stopped whenever the stack widget loses focus on RunWidget.
    • The RunWidget timer is started whenever the stack widget regains focus on RunWidget.

@rocco8773
rocco8773 merged commit 6c5faa5 into main Sep 10, 2026
17 checks passed
@github-project-automation github-project-automation Bot moved this from Tasks to Done in BaPSF Motion Sep 10, 2026
@rocco8773
rocco8773 deleted the runwidget_update_timer branch September 10, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant