Just a little thing - probably even being a bit picky
Doing an update of the caption like:
auipane.Caption(itemDesc)
Requires that I do the following (or to resize) to make it show - maybe Caption could do the Refresh?
auipane.window.GetParent().Refresh()
Werner
Hi,
I belive, changing the caption behaves the same like other changes in
the docks (Float, Dock, Hide ...), you have to call _mgr.Update()
explicitely to make them appear. (If you are changing multiple
captions at ones, the AUIManager can be updated once only at the end.
Vlasta
···
============================
2009/4/25 Werner F. Bruhin <werner.bruhin@free.fr>:
Just a little thing - probably even being a bit picky
Doing an update of the caption like:
auipane\.Caption\(itemDesc\)
Requires that I do the following (or to resize) to make it show - maybe
Caption could do the Refresh?
auipane.window.GetParent().Refresh()
Werner
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Hi Vlastimil and Andrea,
Andrea Gavana wrote:
Hi,
Hi,
I belive, changing the caption behaves the same like other changes in
the docks (Float, Dock, Hide ...), you have to call _mgr.Update()
explicitely to make them appear. (If you are changing multiple
captions at ones, the AUIManager can be updated once only at the end.
Correct. Every (or almost every) method related to AuiPaneInfo (Dock,
Hide, Caption, Float, Snap, BestSize and whatever else) require that
you call aui_manager.Update() for the changes to take place.
Thanks for the quick reply.
Makes sense, but I still need to resize or call Refresh.
I am doing it in a OnItemSelected event, but just for a test I added a menu to my little aui testing script to do this:
def OnChangeCaption(self, event):
auipane = self._mgr.GetPane("DrinkDetails")
auipane.Caption('Some new text ')
self._mgr.Update()
I see the same problem, i.e. the caption only shows if I resize or if I call a Refresh on the parent.
Werner
···
On Sat, Apr 25, 2009 at 11:32 AM, Vlastimil Brom wrote: