topbar -> button & ButtonWidget || Added disabled feature & font size & right-click action & toggle select#458
Open
JimChr-R4GN4R wants to merge 19 commits intolouisnw01:mainfrom
Open
topbar -> button & ButtonWidget || Added disabled feature & font size & right-click action & toggle select#458JimChr-R4GN4R wants to merge 19 commits intolouisnw01:mainfrom
JimChr-R4GN4R wants to merge 19 commits intolouisnw01:mainfrom
Conversation
If you don't set a button's selected_bg it will disable the toggle select feature.
Pull updates
Same functionality with hide_data and show_data, but if the data is visible, it will be hidden, and vice versa without the need of adding ifs and variables in your code.
If you create a variable of marker_list(), you may do markers = chart.marker_list(m_list) chart.remove_markers(markers)
…nuWidget instead of Widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When button is disabled, if you press it (left or right click), it does not call the do_something function and it's text get's opacity=0.5
ATTENTION: best practice for the
right_click_funcfeature is to set the function like thisright_click_func=lambda event: do_something_else(chart)instead of justright_click_func=do_something_else, because if you need to use thechartvariable, the function will through error.If you don't set selected_bg, the toggle select feature will be disabled.