pyAUI

Just a little thing - probably even being a bit picky :slight_smile:

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 :slight_smile:

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,

···

On Sat, Apr 25, 2009 at 11:32 AM, Vlastimil Brom wrote:

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.

Andrea.

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

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:

Hi Werner,

···

On Sat, Apr 25, 2009 at 2:19 PM, Werner F. Bruhin wrote:

Hi Vlastimil and Andrea,

Andrea Gavana wrote:

Hi,

On Sat, Apr 25, 2009 at 11:32 AM, Vlastimil Brom wrote:

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.

Uhm, this may indeed be a bug... I can't really see where the problem
is, but I'll see what I can do to fix it.

Andrea.

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

Hi Werner,

···

On Sat, Apr 25, 2009 at 3:52 PM, Andrea Gavana wrote:

Hi Werner,

On Sat, Apr 25, 2009 at 2:19 PM, Werner F. Bruhin wrote:

Hi Vlastimil and Andrea,

Andrea Gavana wrote:

Hi,

On Sat, Apr 25, 2009 at 11:32 AM, Vlastimil Brom wrote:

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.

Uhm, this may indeed be a bug... I can't really see where the problem
is, but I'll see what I can do to fix it.

I just committed a change to SVN which may fix this issue... could you
please try it and see if it works?

Andrea.

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

Hi Andrea,

Andrea Gavana wrote:

I just committed a change to SVN which may fix this issue... could you
please try it and see if it works?
  

Works like a charm!

Thanks
Werner