Skip to content

Add function to apply context menu to widget #42

Open
@UnsignedArduino

Description

@UnsignedArduino

If we add a context menu to a widget that already has on "built-in" (like entries, text, etc.) then it will add it under. Maybe something like this:

def make_menu_for_widget():
    # return a TkZero menu object that has all the commands and everything set to their respective states
    # if nothing is returned then don't show a context menu
    # this function will be called everytime before we show the right-click menu

add_context_menu(widget, make_menu_func=make_menu_for_widget)

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions