Werner
unread,Sep 28, 2012, 8:24:59 AM9/28/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxpytho...@googlegroups.com
Hi (probably Kevin and/or Andrea;-) ),
I have a layout using aui and the dialog and all panels are
sized_control version of these controls, all works well until I try to
manually detach/float one of the panels, when I try to do this I get
this exception:
dexternalimp.py, line 1246, in <module>
dlg.ShowModal()
_windows.py, line 805, in ShowModal
return _windows_.Dialog_ShowModal(*args, **kwargs)
dexternalimp.py, line 1224, in onImportVintButton
self.newWineDialog(self.dbItem, xmlLog)
dexternalimp.py, line 1200, in newWineDialog
dlg.view.ShowModal()
_windows.py, line 805, in ShowModal
return _windows_.Dialog_ShowModal(*args, **kwargs)
framemanager.py, line 9210, in OnMotion
self.OnMotion_ClickCaption(event)
framemanager.py, line 9382, in OnMotion_ClickCaption
self.Update()
framemanager.py, line 6409, in Update
frame = self.CreateFloatingFrame(self._frame, p)
framemanager.py, line 4237, in CreateFloatingFrame
return AuiFloatingFrame(parent, self, pane_info)
framemanager.py, line 2887, in __init__
size=pane.floating_size, style=style, name="auiFloatingFrame")
_windows.py, line 1081, in __init__
_windows_.MiniFrame_swiginit(self,_windows_.new_MiniFrame(*args,
**kwargs))
sized_controls.py, line 617, in AddChild
SizedParent.AddChild(self, child)
sized_controls.py, line 488, in AddChild
item = sizer.Add(child)
self = wx.lib.sized_controls.SizedPanel instance
child = wx._windows.MiniFrame
A SizedPanel has a sizer, so I don't understand why at this point for
some reason the sizer is gone.
Appreciate any tips on what might cause this.
Problem can be recreated by detaching e.g. the lower left panel when
running the attached code.
Werner
P.S.
I am using wxPython 2.9.4.0.b20120623 on Python 2.7.2 and AGW hasn't
been updated for a few month - will try that later today).
P.S.2
Andrea, could we take up the AUI tutorial idea again?