Static variables in wx.Python?

Many of my frames are subclassed from a more generic one. With variables declared at class level (before the init method) something occurs that is not completely clear to me. While strings, integers, floating point objects and the like at the second or third subclassing start always with the original value, lists seem to conserve the values acquired in the former subclassings, i.e. they seem to behave like a static variable in C++. The variable was originally declared so:
ButtonsInLine = []
My OS is Windows XP, python version 2.5, wx.Python version 2.8
I have solved the problem, for the moment, re-declaring the list in init, but I feel uneasy with just an empiric solution. Thanks in advance for any explanation.

Hi Bruce,

I have made py2exe files in python and pygame, but tried to do it in

wxpython and came up with an error. Is there a version of py2exe for the

wxpython? If so, where is it?

It would help if you would post your setup.py file, and the error messages which you get.

Regards,

···

On Thu, May 8, 2008 at 12:49 PM, FT chester_lab@fltg.net wrote:

    Bruce

wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Hi,

···

On Thu, May 8, 2008 at 11:59 AM, Tim van der Leeuw wrote:

Hi Bruce,

On Thu, May 8, 2008 at 12:49 PM, FT <chester_lab@fltg.net> wrote:

I have made py2exe files in python and pygame, but tried to do it in
wxpython and came up with an error. Is there a version of py2exe for the
wxpython? If so, where is it?

It would help if you would post your setup.py file, and the error messages
which you get.

Yep, that would be useful. If you get an error, just post the content
of a file called yourApp.exe.log. Also, there is no wxPython-specific
version of py2exe, as py2exe is only Python-dependent.

Andrea.

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

Hi!

    Yes, I should have included an example. It is early morning here and ran
the py2exe last night. I did a search and discovered I need to add a
manifest.
    I got this example here:
http://wiki.wxpython.org/index.cgi/DistributingYourApplication

    I will use it and see what happens. First use my version and add the
manifest.
    I guess I will see what happens and call back.

    thanks, Bruce

Hi,

···

On Thu, May 8, 2008 at 11:59 AM, Tim van der Leeuw wrote:

Hi Bruce,

On Thu, May 8, 2008 at 12:49 PM, FT <chester_lab@fltg.net> wrote:

I have made py2exe files in python and pygame, but tried to do it in
wxpython and came up with an error. Is there a version of py2exe for the
wxpython? If so, where is it?

It would help if you would post your setup.py file, and the error messages
which you get.

Yep, that would be useful. If you get an error, just post the content
of a file called yourApp.exe.log. Also, there is no wxPython-specific
version of py2exe, as py2exe is only Python-dependent.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users