[wxPython-users] AuiPane Initialize as Floating

Robin Dunn robin at alldunn.com
Mon Aug 6 15:04:56 PDT 2007


Cody Precord wrote:
> Yes, I do call mgr.Update() directly after adding the PaneInfo with 
> AddPane, and directly after any Show/Hide.
> 
> I have decided to move a different direction with this as the panel 
> didn't fit the layout very well when docked anyway. It would however be 
> good to determine how to get this to work for future reference.
> 
> Later this week I will try cross testing on Windows. If it works on 
> windows I will probably file a bug against wxMac.

This change in the demo works fine on wxMac:

diff -r 63dd84492d2c wxPython/demo/AUI_DockingWindowMgr.py
--- a/wxPython/demo/AUI_DockingWindowMgr.py     Mon Aug 06 14:09:43 2007 
-0700
+++ b/wxPython/demo/AUI_DockingWindowMgr.py     Mon Aug 06 14:59:25 2007 
-0700
@@ -249,6 +249,7 @@ class PyAUIFrame(wx.Frame):

          self._mgr.AddPane(self.CreateTreeCtrl(), wx.aui.AuiPaneInfo().
                            Name("test8").Caption("Tree Pane").
+                          Float().
 
Left().Layer(1).Position(1).CloseButton(True).MaximizeButton(True))

          self._mgr.AddPane(self.CreateSizeReportCtrl(), 
wx.aui.AuiPaneInfo().


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list