Problem with Persistence

Andrea I am studying how to use the Persistence in my tool and i am having some problems.

My application uses some ScrolledPanel and the problem would seems to occur for the ScrolledPanel.

Traceback Info:

Traceback (most recent call last):

File “C:\Python27\dev4\core.py”, line 960, in exitMain2

self._persistMgr.SaveAndUnregister()

File “C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persistencemanager.py”, line 555, in SaveAndUnregister

self.SaveAndUnregister(obj.GetWindow())

File “C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persistencemanager.py”, line 559, in SaveAndUnregister

self.Save(window)

File “C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persistencemanager.py”, line 468, in Save

self._persistentObjects[name].Save()

File “C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persistencemanager.py”, line 127, in Save

self._persistentHandler.Save()

File “C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persist_handlers.py”, line 924, in Save

scrollPos = scroll.GetScrollPos()

File “C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx_core.py”, line 10328, in GetScrollPos

return _core_.Window_GetScrollPos(*args, **kwargs)

TypeError: Required argument ‘orientation’ (pos 2) not found

System Information:

Timestamp: 2012-03-12 15:25:21.857000

Operating System: Windows Vista (build 6001, Service Pack 1)

Python Version: 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]

wxPython Version: 2.8.12.1 (msw-unicode)

wxPython Info: (WXMSW, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)

Python Encoding: Default=ascii File=mbcs

wxPython Encoding: cp1252

System Architecture: 64bit AMD64

Byte order: little

Frozen: False

···


Fabio Spadaro

Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:

www.sqliteroot.com

Hello,

Andrea I am studying how to use the Persistence in my tool and i am having
some problems.
My application uses some ScrolledPanel and the problem would seems to occur
for the ScrolledPanel.

Traceback Info:
Traceback (most recent call last):
File "C:\Python27\dev4\core.py", line 960, in exitMain2
self._persistMgr.SaveAndUnregister()
File
"C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persistencemanager.py",
line 555, in SaveAndUnregister
self.SaveAndUnregister(obj.GetWindow())
File
"C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persistencemanager.py",
line 559, in SaveAndUnregister
self.Save(window)
File
"C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persistencemanager.py",
line 468, in Save
self._persistentObjects[name].Save()
File
"C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persistencemanager.py",
line 127, in Save
self._persistentHandler.Save()
File
"C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\persist\persist_handlers.py",
line 924, in Save
scrollPos = scroll.GetScrollPos()
File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line
10328, in GetScrollPos
return _core_.Window_GetScrollPos(*args, **kwargs)
TypeError: Required argument 'orientation' (pos 2) not found

This error message has been fixed a while back in the SVN version
(about 4 months ago) and it should be included in the latest wxPython
2.9.X series. As I see, you are still using the 2.8.12 version, so I
would suggest you to pick up the latest SVN for the __init__.py,
persist_handlers.py, persist_constants.py and persistencemanager.py
files (the whole "persist" folder, in other words).

If you encounter any issue with the SVN version, please let me know.

Andrea.

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

···

On 12 March 2012 15:36, Fabio Spadaro wrote:

Hi.

···

Il giorno 12 marzo 2012 15:43, Andrea Gavana andrea.gavana@gmail.com ha scritto:

This error message has been fixed a while back in the SVN version

(about 4 months ago) and it should be included in the latest wxPython

2.9.X series. As I see, you are still using the 2.8.12 version, so I

would suggest you to pick up the latest SVN for the init.py,

persist_handlers.py, persist_constants.py and persistencemanager.py

files (the whole “persist” folder, in other words).

If you encounter any issue with the SVN version, please let me know.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”

http://xoomer.alice.it/infinity77/

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Can I use the 2.8.12.1 version downloading these files?


Fabio Spadaro

Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:

www.sqliteroot.com

Hi,

···

On 12 March 2012 16:15, Fabio Spadaro wrote:

Hi.

Il giorno 12 marzo 2012 15:43, Andrea Gavana <andrea.gavana@gmail.com> ha
scritto:

This error message has been fixed a while back in the SVN version
(about 4 months ago) and it should be included in the latest wxPython
2.9.X series. As I see, you are still using the 2.8.12 version, so I
would suggest you to pick up the latest SVN for the __init__.py,
persist_handlers.py, persist_constants.py and persistencemanager.py
files (the whole "persist" folder, in other words).

If you encounter any issue with the SVN version, please let me know.

Andrea.

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

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Can I use the 2.8.12.1 version downloading these files?

I didn't try it, but I think you can. As far as I can see there should
be nothing specific to 2.9 in the persistent stuff, but maybe make a
backup of your current persist folder in the 2.8 version.

Andrea.

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

Hi.

persistent.py (10.4 KB)

···

Il giorno 12 marzo 2012 16:17, Andrea Gavana andrea.gavana@gmail.com ha scritto:

I didn’t try it, but I think you can. As far as I can see there should

be nothing specific to 2.9 in the persistent stuff, but maybe make a

backup of your current persist folder in the 2.8 version.
I updated the “persist” folder and I tried inserting the CustomTreeCtrl instead of TreeCtrl but it does not fit on the last item selected.

Attached script taken from the demo and changed.

Fabio Spadaro

Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:

www.sqliteroot.com

Hi,

···

On 13 March 2012 15:07, Fabio Spadaro wrote:

Hi.
Il giorno 12 marzo 2012 16:17, Andrea Gavana <andrea.gavana@gmail.com> ha
scritto:

I didn't try it, but I think you can. As far as I can see there should
be nothing specific to 2.9 in the persistent stuff, but maybe make a
backup of your current persist folder in the 2.8 version.

I updated the "persist" folder and I tried inserting the CustomTreeCtrl
instead of TreeCtrl but it does not fit on the last item selected.
Attached script taken from the demo and changed.

Thank you for reporting this, it was a very bad bug. I have
re-implemented the handlers logic and I'll upload a new version this
evening.

Andrea.

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

This issue should now be fixed in the current SVN, thanks for the bug report.

Andrea.

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

···

On 13 March 2012 16:46, Andrea Gavana wrote:

Hi,

On 13 March 2012 15:07, Fabio Spadaro wrote:

Hi.
Il giorno 12 marzo 2012 16:17, Andrea Gavana <andrea.gavana@gmail.com> ha
scritto:

I didn't try it, but I think you can. As far as I can see there should
be nothing specific to 2.9 in the persistent stuff, but maybe make a
backup of your current persist folder in the 2.8 version.

I updated the "persist" folder and I tried inserting the CustomTreeCtrl
instead of TreeCtrl but it does not fit on the last item selected.
Attached script taken from the demo and changed.

Thank you for reporting this, it was a very bad bug. I have
re-implemented the handlers logic and I'll upload a new version this
evening.