The Wayback Machine - https://web.archive.org/web/20201014033011/https://github.com/wxWidgets/Phoenix/issues/349
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

Cannot drag and drop into the HyperTreeList #349

Closed
dnlbazac opened this issue May 9, 2017 · 0 comments
Closed

Cannot drag and drop into the HyperTreeList #349

dnlbazac opened this issue May 9, 2017 · 0 comments

Comments

@dnlbazac
Copy link

@dnlbazac dnlbazac commented May 9, 2017

Hello.

I want to use the drag&drop feature into the HyperTreeList. I get the same errors I get when using the HyperTreeList demo in the package wxPython-demo-4.0.0a2.dev3038+953a2e5.
I am using Phoenix 4 and Python 3.5 in Windows 10 native on a i5@2,2GHz with 8GB of RAM.
Having checked the EVT_TREE_BEGIN_DRAG and EVT_TREE_END_DRAG events , when I attempt to drag a simple item from one node to another I get the following errors:
Traceback (most recent call last):
File "C:\TOOLS\python\python35\lib\site-packages\wx\lib\agw\hypertreelist.py", line 3528, in OnMouse
self._dragImage.BeginDrag(wx.Point(0,0), self)
wx._core.wxAssertionError: C++ assertion "Assert failure" failed at ....\src\common\wincmn.cpp(3346) in DoNotifyWindowAboutCaptureLost(): window that captured the mouse didn't process wxEVT_MOUSE_CAPTURE_LOST
Traceback (most recent call last):
File "C:\TOOLS\python\python35\lib\site-packages\wx\lib\agw\hypertreelist.py", line 3608, in OnMouse
self.ReleaseMouse()
wx._core.wxAssertionError: C++ assertion "!wxMouseCapture::stack.empty()" failed at ....\src\common\wincmn.cpp(3319) in wxWindowBase::ReleaseMouse(): Releasing mouse capture but capture stack empty?
"
Googling I found out the wx.lib.agw.aui.AuiNotebook had a very similar issue. Some possible solution (see #321 ) involved moving the self.HasCapture/self.ReleaseMouse after the self._dragImage.EndDrag() in the OnMouse handler.
By doing that I got rid of the "Releasing mouse capture but capture stack empty?" error message but I was left with the wxEVT_MOUSE_CAPTURE_LOST error message.
I am not sure how to proceed...
Are you aware of this issue? Do you have any idea on how to solve it?

Thank you.

infinity77 added a commit to infinity77/Phoenix that referenced this issue Nov 11, 2017
infinity77 added a commit to infinity77/Phoenix that referenced this issue Nov 15, 2017
RobinD42 added a commit that referenced this issue Nov 16, 2017
The fixes seems to get rid of issue #349 related to DnD in HyperTreeList. Fixes #349.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.