[wxPython-users] AUI manager and maximize pane (suggested fix)

roee shlomo roee88 at gmail.com
Tue Jan 22 08:29:17 PST 2008


 On Jan 22, 2008 11:05 AM, Max Landaeus <max at landaeus.com> wrote:

> Hi again,
>
> The attached code seems to fix this (in a not so beautiful way). Please
> test and let me know if you find any problems.
>
> The code also includes another fix for the problem with panels that
> disappears when the sash is dragged outside the window.
>
> Max
>


Hi Max,

Possible alternative solution (inspired by yours),
How about adding the following lines to the Frame class:


>         self.maxPaneOldDir =3D None
>         self.Bind(wx.aui.EVT_AUI_PANE_MAXIMIZE, self.onMaximizeAuiPane)
>         self.Bind(wx.aui.EVT_AUI_PANE_RESTORE, self.onRestoreAuiPane)
>
>     def onMaximizeAuiPane(self, event):
>         pane =3D event.GetPane()
>         self.maxPaneOldDir =3D pane.dock_direction
>         pane.Right()
>
>     def onRestoreAuiPane(self, event):
>         pane =3D event.GetPane()
>         if self.maxPaneOldDir:
>             pane.dock_direction =3D self.maxPaneOldDir
>             self.maxPaneOldDir =3D None
>

Roee.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200801=
22/0d898f79/attachment.htm


More information about the wxpython-users mailing list