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

CustomTreeCtrl: event for right click on the "blank area" (not on any item) #2647

Open
tianzhuqiao opened this issue Nov 17, 2024 · 0 comments

Comments

@tianzhuqiao
Copy link

wxpython 4.2.2, python 3.11 (macOS/Windows)

Looks like CustomTreeCtrl will "eat" all the right click events. For example, when right click on the "blank area" (not on any item), the "parent" will not receive any event (e.g., wx.EVT_CONTEXT_MENU).

Maybe in this case, we shall "skip" the event (event.Skip()) or send a new event?

if item is None:
if self._editCtrl is not None and item != self._editCtrl.item():
self._editCtrl.StopEditing()
return # we hit the blank area

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

1 participant