-
Notifications
You must be signed in to change notification settings - Fork 108
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
Feature request: possibility of disabling some right-click options #60
Comments
Hello @bartlomiejduda Doing something like this would help serve your purpose: TableCanvas(self.tframe,read_only=True) The above functionality helps make your table read-only! |
Hey, @hannansatopay Thanks for answer. I know read-only option, I have tested it earlier, but in my particular case I needed to disable only adding and deleting rows to prevent breaking some functionality by user. :) |
Hello, It's possible but you have to make a few changes
On
But you also need to change this list below:
To sum up you just have comment and change values like the ones in |
Hello. Yeah, I was able to do it as I described in my first post by changing "general" list:
It is only a feature request for developers to make it by parameters:
For me It would be safer to make such changes in my code rather than tkintertable code. :) |
Yes I think since you know how to do it it's better to allow developers to sub-class the table and add this themselves. I generally am not adding new features to this package now, only bug fixes. |
Hello. Thank you for great tool. I have small feature request for future versions.
I have tried to disable adding rows and deleting rows for my table and I had to do it manually by changing line in Tables.py
from
general = ["Select All", "Add Row(s)" , "Delete Row(s)", "Auto Fit Columns", "Filter Records", "Preferences"]
to general = ["Select All", "Auto Fit Columns", "Filter Records", "Preferences"]
But it would be nice to make it possible while creating new table, for example:
table = TableCanvas(some_frame, model=model, disable_add_rows=True, disable_delete_rows=True)
It would be good solution to have such parameter for every right-click option. :)
The text was updated successfully, but these errors were encountered: