wxPyGridTable

I was trying to understand wxPyGridTable (from the wiki and Zope)
but during exec in Boa the following errors appear

wxPyGridTable.py:1: DeprecationWarning: The wxPython compatibility package
is no longer automatically generated or actively maintained. Please switch
to the wx package as soon as possible.
   from wxPython.wx import *

In cases like this, if you're stumped, you can always try Googling the
error message...for "DeprecationWarning: The wxPython compatibility"
brings you to this message:

http://bytes.com/forum/thread584430.html

but the long and short of it is instead of:
from wxPython.wx import *
instead, use:
import wx

Traceback (most recent call last):
   File "wxPyGridTable.py", line 1, in <module>
     from wxPython.wx import *
   File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\__init__.py",
line 15, in <module>
     import _wx
   File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\_wx.py",
line 8, in <module>
     from _misc import *
   File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\_misc.py", line
456, in <module>
     wxDateTime_GetNumberOfDaysinYear =
wx._misc.DateTime_GetNumberOfDaysinYear
AttributeError: 'module' object has no attribute
'DateTime_GetNumberOfDaysinYear'

As it turns out, this too can be Googled:

http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/95258

So yes, it was the I in In was not capitalized. That's a common
mistake, but if you make it a few times you will get used to looking
for it. But shouldn't the form now be:
wx.DateTime.GetNumberOfDaysInYear() ?

what does all this mean?

Boa will show you the errors, which is handy. Try clicking on the
various lines and you'll see it will bring you to the offending line
in the code and you can then make the correction if possible.

By the way, it is recommendable to paste only plain text in your
messages to the group.

···

On Thu, Apr 10, 2008 at 2:13 AM, Erik Vandamme <erik1vandamme@gmail.com> wrote:

Thanks, that improves a lot, but there seems to be a cascade of
deprecated stuff in there, is there a more up-to-date similar thing
around?

C M wrote:

···
**
Erik Vandamme
54 Hilltop Road - WAMBERAL NSW 2260 Australia
Skype - erik_vandamme
02 43843613 - 0406 042750**

erik1vandamme@gmail.com

On Thu, Apr 10, 2008 at 2:13 AM, Erik Vandamme wrote:
 I was trying to understand wxPyGridTable (from the wiki and Zope)
but during exec in Boa the following errors appear
wxPyGridTable.py:1: DeprecationWarning: The wxPython compatibility package
is no longer automatically generated or actively maintained. Please switch
to the wx package as soon as possible.
from wxPython.wx import *



In cases like this, if you're stumped, you can always try Googling the
error message...for "DeprecationWarning: The wxPython compatibility"
brings you to this message:
but the long and short of it is instead of:
from wxPython.wx import *
instead, use:
import wx
   Traceback (most recent call last):
File "wxPyGridTable.py", line 1, in <module>
from wxPython.wx import *
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\__init__.py",
line 15, in <module>
import _wx
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\_wx.py",
line 8, in <module>
from _misc import *
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\_misc.py", line
456, in <module>
wxDateTime_GetNumberOfDaysinYear =
wx._misc.DateTime_GetNumberOfDaysinYear
AttributeError: 'module' object has no attribute
'DateTime_GetNumberOfDaysinYear'



As it turns out, this too can be Googled:
So yes, it was the I in In was not capitalized. That's a common
mistake, but if you make it a few times you will get used to looking
for it. But shouldn't the form now be:
wx.DateTime.GetNumberOfDaysInYear() ?
what does all this mean?

Boa will show you the errors, which is handy. Try clicking on the
various lines and you'll see it will bring you to the offending line
in the code and you can then make the correction if possible.
By the way, it is recommendable to paste only plain text in your
messages to the group.
_______________________________________________
wxpython-users mailing list

erik1vandamme@gmail.comhttp://bytes.com/forum/thread584430.htmlhttp://article.gmane.org/gmane.comp.lib.wxwidgets.devel/95258wxpython-users@lists.wxwidgets.orghttp://lists.wxwidgets.org/mailman/listinfo/wxpython-users

[similar thing here = PyGridTableBase]

Have you looked at the Grid and Grid_MegaExample in the demo?

···

On Thu, Apr 10, 2008 at 3:20 AM, Erik Vandamme <erik1vandamme@gmail.com> wrote:

Thanks, that improves a lot, but there seems to be a cascade of deprecated
stuff in there, is there a more up-to-date similar thing around?