Skip to content

Conversation

@GuillaumeFavelier
Copy link
Contributor

This PR brings back the part of #7257 about the configuration of the status bar. By default it displays a help message for 5 seconds and adds basic support for a progress bar. It's also a follow-up to #7580 (comment).

@codecov
Copy link

codecov bot commented Apr 9, 2020

Codecov Report

Merging #7588 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #7588      +/-   ##
==========================================
- Coverage   90.12%   90.12%   -0.01%     
==========================================
  Files         454      454              
  Lines       83392    83401       +9     
  Branches    13210    13210              
==========================================
+ Hits        75159    75161       +2     
- Misses       5374     5378       +4     
- Partials     2859     2862       +3     

@GuillaumeFavelier
Copy link
Contributor Author

@hoechenberger does it fix the last bit of jerkiness in the interface?

Also feel free to share if you have any idea on how to populate the status bar 👍

@hoechenberger
Copy link
Member

hoechenberger commented Apr 9, 2020

@GuillaumeFavelier There is a small glitch visible in the status bar once the help text gets removed. The glitch disappears as soon as I resize the window, so it's most likely just a tiny redrawing issue?

https://youtu.be/9CNizAH8IB8

(lower left corner of the window)

@hoechenberger
Copy link
Member

Also feel free to share if you have any idea on how to populate the status bar 👍

Will do later :)

@GuillaumeFavelier
Copy link
Contributor Author

Thanks for sharing the video! you got 1 more like.

so it's most likely just a tiny redrawing issue?

Probably, I will investigate.

@hoechenberger
Copy link
Member

Thanks for sharing the video! you got 1 more like.

🤣👍

@GuillaumeFavelier GuillaumeFavelier changed the title Configure _TimeViewer status bar WIP: Configure _TimeViewer status bar Apr 10, 2020
@GuillaumeFavelier
Copy link
Contributor Author

I switched the message to the internal status_msg instead of showMessage(). What do you think @hoechenberger ?

@GuillaumeFavelier GuillaumeFavelier changed the title WIP: Configure _TimeViewer status bar MRG: Configure _TimeViewer status bar Apr 10, 2020
@hoechenberger
Copy link
Member

(Just chatted with @GuillaumeFavelier; the graphical glitch is gone for me, and I suggested to remove the i icon from the status bar)

@GuillaumeFavelier GuillaumeFavelier changed the title MRG: Configure _TimeViewer status bar WIP: Configure _TimeViewer status bar Apr 14, 2020
@GuillaumeFavelier GuillaumeFavelier changed the title WIP: Configure _TimeViewer status bar MRG: Configure _TimeViewer status bar Apr 14, 2020
def configure_status_bar(self):
from PyQt5.QtWidgets import QLabel, QProgressBar
self.status_msg = QLabel(self.default_status_bar_msg)
self.status_progress = QProgressBar()
Copy link
Member

Choose a reason for hiding this comment

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

The progress bar is currently unused, right? Are you planning on reviving it (+1 on that btw!), or why is it here? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The progress bar is currently unused so it is hidden. But I add it in here because I plan to use it when I will add support for save_movie in _TimeViewer. It's an item of #7162

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the clarification. Just wanted to ensure you didn't accidentally leave sth in that you don't need anymore.

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

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

provided CIs are green

@hoechenberger
Copy link
Member

@larsoner One of the Azure builds failed because it was somehow canceled (for whatever reason). Would it be possible for me to restart such CI runs somehow? It seems I'm currently lacking the required permissions?

@agramfort agramfort merged commit 1c92951 into mne-tools:master Apr 15, 2020
@GuillaumeFavelier GuillaumeFavelier deleted the time_viewer_status_bar branch June 11, 2020 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants