AUI manager and maximize pane (suggested fix)

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

Andrea Gavana wrote:

auisizeexample.py (3.55 KB)

···

http://sourceforge.net/tracker/index.php?func=detail&aid=1689464&group_id=9863&atid=109863http://xoomer.alice.it/infinity77/wxPython-users-unsubscribe@lists.wxwidgets.orgwxPython-users-help@lists.wxwidgets.org

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 = 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 = event.GetPane()
    self.maxPaneOldDir = pane.dock_direction     
    pane.Right()

def onRestoreAuiPane(self, event):
pane = event.GetPane()
if self.maxPaneOldDir:
pane.dock_direction = self.maxPaneOldDir
self.maxPaneOldDir = None

Roee.

···

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