Skip to content

avoid right clic multiple popup #11

@k-holo

Description

@k-holo

When you right-click to display the popup windows, you have to select an option in the menu to close it.
To avoid this, you need to use tk_popup instead of post.
You could modify these lines:

chat_box.bind(_right_click, lambda e: chat_box_menu.post(e.x_root, e.y_root))
inner_label.bind(_right_click, lambda e: _right_menu.post(e.x_root, e.y_root))

To:

chat_box.bind(_right_click, lambda e: chat_box_menu.tk_popup(e.x_root, e.y_root))

inner_label.bind(_right_click, lambda e: _right_menu.tk_popup(e.x_root, e.y_root))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions