Hi Andrea,
I have problems with the latest SVN version of this.
During init of my frame/dialog etc I call this method:
def persistRegisterControls(self):
"""Register controls with PersistenceManager"""
log.debug("persist")
self.view.Freeze()
self._persistMgr.RegisterAndRestoreAll(self.view)
self.view.Thaw()
With the latest version no controls are shown, i.e. just a blank panel. If I open the WIT and highlight anything and move to another control in the WIT then all shows up.
If comment the Freeze/Thaw controls show up, BUT the "RestoreAll" of the above doesn't work, i.e. does not restore previous positions of things like notebook pages.
Reverted back to revision 69627 and all works fine. I looked at the difference but don't see what would cause this issue.
I also tried by removing the file created by persist before I reverted, but that did not make any difference.
Any idea?
Werner
Hi Werner,
Hi Andrea,
I have problems with the latest SVN version of this.
During init of my frame/dialog etc I call this method:
def persistRegisterControls(self):
"""Register controls with PersistenceManager"""
log.debug("persist")
self.view.Freeze()
self._persistMgr.RegisterAndRestoreAll(self.view)
self.view.Thaw()
With the latest version no controls are shown, i.e. just a blank panel. If
I open the WIT and highlight anything and move to another control in the WIT
then all shows up.
If comment the Freeze/Thaw controls show up, BUT the "RestoreAll" of the
above doesn't work, i.e. does not restore previous positions of things like
notebook pages.
Reverted back to revision 69627 and all works fine. I looked at the
difference but don't see what would cause this issue.
I also tried by removing the file created by persist before I reverted, but
that did not make any difference.
Any idea?
There is currently a bug in the SVN code for PersistentControls, it
just slipped my grasp. Can you try the following on
persist_handlers.py around line 2533:
Change this line:
HANDLERS[-1] += (SB.SToggleButton, SB.SBitmapToggleButton,
SB.SBitmapTextToggleButton)
Into this:
HANDLERS[-1] = ("ToggleButtonHandler", (wx.ToggleButton,
buttons.GenToggleButton,
buttons.GenBitmapToggleButton,
buttons.GenBitmapTextToggleButton,
SB.SToggleButton,
SB.SBitmapToggleButton,
SB.SBitmapTextToggleButton))
Does anything change?
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On 21 March 2012 16:00, Werner F. Bruhin wrote: