wxPython/Phoenix bugs
The agw/aui
layout manager is full of bugs.
When dragging a toolbar around, these errors occur regularly:
Traceback (most recent call last):
File "/Users/paulmc/.virtualenvs/fsleyes_py3/lib/python3.6/site-packages/wx/lib/agw/aui/framemanager.py", line 9242, in OnMotion
self.OnMotion_DragToolbarPane(event)
File "/Users/paulmc/.virtualenvs/fsleyes_py3/lib/python3.6/site-packages/wx/lib/agw/aui/framemanager.py", line 9877, in OnMotion_DragToolbarPane
self.OnLeftUp_DragToolbarPane(eventOrPt)
File "/Users/paulmc/.virtualenvs/fsleyes_py3/lib/python3.6/site-packages/wx/lib/agw/aui/framemanager.py", line 9931, in OnLeftUp_DragToolbarPane
pane.floating_pos = pane.frame.GetPosition()
AttributeError: 'NoneType' object has no attribute 'GetPosition'
Traceback (most recent call last):
File "/Users/paulmc/.virtualenvs/fsleyes_py3/lib/python3.6/site-packages/wx/lib/agw/aui/framemanager.py", line 9036, in OnLeftDown
rootManager.OnGripperClicked(part.pane.window, event.GetPosition(), offset)
File "/Users/paulmc/.virtualenvs/fsleyes_py3/lib/python3.6/site-packages/wx/lib/agw/aui/framemanager.py", line 8632, in OnGripperClicked
self._frame.CaptureMouse()
wx._core.wxAssertionError: C++ assertion "!wxMouseCapture::IsInCaptureStack(this)" failed at /Users/robind/projects/buildbots/macosx-vm4/dist-osx-py36/Phoenix/ext/wxWidgets/src/common/wincmn.cpp(3271) in CaptureMouse(): Recapturing the mouse in the same window?
Traceback (most recent call last):
File "/Users/paulmc/.virtualenvs/fsleyes_py2app/in/a/really/long/path/to/trick/py2app/fsleyes_py2app/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 16766, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/Users/paulmc/.virtualenvs/fsleyes_py2app/in/a/really/long/path/to/trick/py2app/fsleyes_py2app/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/lib/agw/aui/framemanager.py", line 6399, in Update
sizer = self.LayoutAll(self._panes, self._docks, self._uiparts, False)
File "/Users/paulmc/.virtualenvs/fsleyes_py2app/in/a/really/long/path/to/trick/py2app/fsleyes_py2app/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/lib/agw/aui/framemanager.py", line 6240, in LayoutAll
uiparts = self.LayoutAddDock(middle, row, uiparts, spacer_only)
File "/Users/paulmc/.virtualenvs/fsleyes_py2app/in/a/really/long/path/to/trick/py2app/fsleyes_py2app/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/lib/agw/aui/framemanager.py", line 5835, in LayoutAddDock
pane_positions, pane_sizes = self.GetPanePositionsAndSizes(dock)
File "/Users/paulmc/.virtualenvs/fsleyes_py2app/in/a/really/long/path/to/trick/py2app/fsleyes_py2app/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/lib/agw/aui/framemanager.py", line 5541, in GetPanePositionsAndSizes
raise Exception("Too many action panes!")
Exception: Too many action panes!
And trying to re-dock a floating toolbar above/below an existing docked toolbar is an absolute nightmare..