Renaming floating pane

Hi,

2009/12/3 Philip Cavaco:

Hello,

I have a pane which is managed by AUIManager. I am attempting to
change the caption of the pane with the following code

paneinfo = auimgr.GetPane(pane)
paneinfo.Caption(newname)
auimgr.Update()

This works when the pane is docked in the main window. Also if I dock
the window after the name has been reset then the correct name is
shown. Undocking the pane later shows the correct name.

I have tried the following to refresh the pane

paneinfo = auimgr.GetPane(pane)
paneinfo.Caption(newname)
pane.Refresh()
auimgr.Update()

But then the pane is hidden and not shown again.

What is the proper way to update the pane caption?

There is not enough information:

1) Platform, Python version and wxPython version;
2) Which AuiManager are talking about: wx.aui or wx.lib.agw.aui?
3) Small runnable sample app demonstrating the problem:
http://wiki.wxpython.org/MakingSampleApps

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/