Skip to content
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

Deleting popup_menu. #229

Open
Akselrud opened this issue May 29, 2024 · 3 comments
Open

Deleting popup_menu. #229

Akselrud opened this issue May 29, 2024 · 3 comments

Comments

@Akselrud
Copy link

  1. How do I remove pop-ups on columns and rows that are always on the grid? (Cut contenst, Copy contenst, Paste ...)
  2. Is it possible to change its content?
@Akselrud Akselrud reopened this May 29, 2024
@ragardner
Copy link
Owner

ragardner commented May 29, 2024

Do you mean you'd like cut, copy, paste enabled and right click popup menus enabled but not have their menu items on popup menus?

The following functions are for adding new commands, not removing in-built ones:

@Akselrud
Copy link
Author

Thanks for your explanation!
I thought there was an option to remove these pop-ups menus altogether.
I make my menus myself successfully.
But I thought I could remove the default menus...

@ragardner
Copy link
Owner

Hello,

To disable the inbuilt popup menu you can use disable_bindings("right_click_popup_menu"), docs here:

https://github.com/ragardner/tksheet/wiki/Version-7#enable-table-functionality-and-bindings

But it's not possible to remove inbuilt functionality that is already enabled from the popup menus if you want to keep that functionality

In other words, if you want to keep copy enabled and keep "right_click_popup_menu" enabled then you can't remove copy from the menu sorry 🫤

I may have to add more ways to modify the inbuilt menus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants