-
Notifications
You must be signed in to change notification settings - Fork 95
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
Generate extra TableEditor
menus dynamically
#1966
Conversation
This removes the empty_menu, header_menu and related traits. As a result there is a small chance of backwards incompatibility, however: - there are no uses of these traits found in a quick search of the Enthought codebase - any code using these traits is likely buggy, as discovered in #1947 The fixes #1947
empty_menu = editor._create_empty_menu() | ||
if empty_menu is not None: | ||
event.accept() | ||
empty_menu.exec_(position) | ||
else: | ||
editor.header_row = row |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there other code which is dependent on this mutation of header_row
? Otherwise I would think it's better to pass row
to _create_header_menu
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, unfortunately. It's used by most of the handler methods for the default menu Actions (_on_context_insert
, _on_context_remove
, etc.)
This removes the `empty_menu`, `header_menu` and related traits. As a result there is a small chance of backwards incompatibility, however: - there are no uses of these traits found in a quick search of the Enthought codebase - any code using these traits is likely buggy, as discovered in #1947 The fixes #1947
This removes the `empty_menu`, `header_menu` and related traits. As a result there is a small chance of backwards incompatibility, however: - there are no uses of these traits found in a quick search of the Enthought codebase - any code using these traits is likely buggy, as discovered in #1947 The fixes #1947
This removes the
empty_menu
,header_menu
and related traits. As a result there is a small chance of backwards incompatibility, however:The fixes #1947
Checklist