I think I reproduced the original PyAUI bug I've been talking about
months ago. Here's the code. I'm hoping you'll tell me I did something
horribly wrong in this code which is why things don't work.
After you run: Float panel_2, don't let go of the mouse, then hover it
on each of the dock icons to see if they work. Some of them won't. Let
go of panel_2, as floated. Now float panel_1. You can't dock it. Now
let it go too to remain floated. Now you can't dock either panel.
Ram.
···
#############################################
import wx
from garlicsim_wx.general_misc.third_party import aui
# Of course, you'd want to import aui from wherever you keep your
# SVN version of it.
class Frame(wx.Frame):
def __init__(self, *args, **kwargs):
wx.Frame.__init__(self, *args, **kwargs)
self.aui_manager = aui.AuiManager(self)
panel_1 = wx.Panel(self, size=(100, 100),
style=wx.SUNKEN_BORDER)
self.aui_manager.AddPane(
panel_1,
aui.AuiPaneInfo().Right().Caption('panel_1')
)
panel_2 = wx.Panel(self, size=(100, 100),
style=wx.SUNKEN_BORDER)
self.aui_manager.AddPane(
panel_2,
aui.AuiPaneInfo().Center().Caption('panel_2')
)
self.aui_manager.Update()
self.Show()
app = wx.App()
frame = Frame(None)
frame.Show()
app.MainLoop()
#############################################
End of message.