[wxPython-users] Re: Platform<=>version conflict or what?

Werner F. Bruhin werner.bruhin at free.fr
Sun May 6 01:25:19 PDT 2007


Hi Jorma,

Jorma Paavola wrote:
> ....
> - I tested gc.collect() in other test-modules and it works (of course) !
>
> However when I call MyGcCollect()-function from my TestGUI-sw I get 
> error:
>> self.dlgPro.Destroy()
>> AttributeError: 'int' object has no attribute 'dlgPro'
Can you show your code.
>
> Also when I force wx.ProgressDialog to run I get error:
>> NameError: global name '_' is not defined
My texts are all using the "_" macro as my application is translated 
into multiple languages.

Just change this:
self.dlgPro = wx.ProgressDialog(_('Windows 9x - forcing release of 
resources'),

to this:
self.dlgPro = wx.ProgressDialog('Windows 9x - forcing release of 
resources',  etc.......

Werner




More information about the wxpython-users mailing list