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

Gui refactor #102

Merged
merged 12 commits into from
Nov 2, 2020
Merged

Gui refactor #102

merged 12 commits into from
Nov 2, 2020

Conversation

tab-cmd
Copy link
Contributor

@tab-cmd tab-cmd commented Oct 30, 2020

Overview

Refactored base GUI to use PyQT5 instead of WxPython. This required gui_main, BCInterface and RSVPKeyboard to be redone.

Ticket

https://www.pivotaltracker.com/story/show/175194654

Contributions

  • Refactored gui_main. I kept many of the same methods and updated them to use PyQt5 functionality. I added more default methods (ex. build_assests) and abstractions (AlertResponse, AlertMessageType) to help isolate the downstream GUIS from the knowledge of PyQT5.
  • Refactored RSVPKeyboard and BCInterface to use new base class and methods (build_*)
  • Ignore non-default parameters.

Test

  • Run python bcipy/gui/gui_main.py
  • Run python bcipy/gui/BCInterface.py. Select RSVP.
  • Run python bcipy/gui/mode/RSVPKeyboard.py. Input a user_id, run a task. Edit and load parameters.

Documentaion

  • Are documentation updates required? In-line, README, or documentation? Verify the updates you did here.

ability to add buttons and images (todo static text, combo and input boxes)
todo: resize / move assets
TODO: cleanup interface and test all features
Add fonts and update add_text method, add alert boxes, add AlertMessageType and AlertResponse, connect actions to comboboxes. Update RSVPKeyboard to use new methods
@tab-cmd tab-cmd requested a review from lawhead October 30, 2020 21:01
bcipy/gui/BCInterface.py Outdated Show resolved Hide resolved
"""
saved_users = []
data_save_loc = self.parameters['data_save_loc']

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that the parameter_location gets updated, but the parameters never get reloaded, so this will always be the data_save_loc from the default parameters. I can fix that after this is merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tab-cmd tab-cmd merged commit a02dab3 into 1.4.3 Nov 2, 2020
@tab-cmd tab-cmd deleted the gui-refactor branch December 10, 2020 18:48
@tab-cmd tab-cmd mentioned this pull request Jan 20, 2021
4 tasks
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

Successfully merging this pull request may close these issues.

2 participants