-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[ENH] Replace popups with non-intrusive notifications #3855
[ENH] Replace popups with non-intrusive notifications #3855
Conversation
74be9ca
to
7596426
Compare
Codecov Report
@@ Coverage Diff @@
## master #3855 +/- ##
==========================================
+ Coverage 84.28% 84.97% +0.68%
==========================================
Files 384 378 -6
Lines 72736 70496 -2240
==========================================
- Hits 61307 59905 -1402
+ Misses 11429 10591 -838 |
6f7b171
to
e323faa
Compare
cc8145a
to
7124a97
Compare
Orange/canvas/__main__.py
Outdated
def handle_response(result): | ||
if result == QMessageBox.Yes: | ||
surveyDialogButtons = NotificationWidget.Ok | NotificationWidget.Close | ||
surveyDialog = NotificationWidget(icon=QIcon("Orange/widgets/icons/information.png"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These icon paths must be absolute. They will not be located unless running at top level installation directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used Orange.widgets.gui.resource_filename()
in place of absolute paths. Consider this temporary until we receive custom made icons, which will be placed in Orange/canvas/icons
, retrieved with canvas_icons()
.
7124a97
to
b344240
Compare
b344240
to
2b216b4
Compare
Issue
The first of (likely) three pull requests implementing #3372
Description of changes
Implements notifications in the bottom right-hand corner of the canvas, allowing a user to accept, reject or dismiss the notification at their own leisure, as opposed to being interrupted by a pop-up pausing the program.
Includes