-
Notifications
You must be signed in to change notification settings - Fork 2
Highlights Improvements #36
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
base: development
Are you sure you want to change the base?
Conversation
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Song <jmadeson@amazon.com>
Signed-off-by: Madeleine <madeleinejsong@gmail.com>
Signed-off-by: Madeleine <madeleinejsong@gmail.com>
|
|
||
| #option 3: add a pulse effect | ||
| if self.width < 50 and self.height < 50: | ||
| update_widget(self, event) |
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.
The update_widget only needs to be called when you are choosing a new widget/item to highlight. I think what you meant to use was update which will trigger the highlight to be repainted. Instead of calling it in the paintEvent method though, you should call it outside of here on a timed loop at a certain interval (maybe 500ms?)
3 new options improving the highlight visibility of a very small widget:
-highlight the content of the widget itself (shade it)
-highlight the area around the widget not including the widget
-add a pulse effect. i think that this is breaking the tutorial. i have a feeling that i am incorrectly calling the update method for the highlight widget.