johnf schrieb:
> I recently had to reinstall XP due to a virus I couldn't get rid of.  So with 
> the new fresh install I attempted a fresh install (on windows) of python 2.6, 
> and wxPython (for 2.6).  And attempted to run a few dabo forms - without 
> success.  
> The error had something to do with "grid.py" and assert failing.  Needed, to 
> get something working immediately so I punted and installed 2.5 stuff.  That 
> works of course.

Possibly the same problem I had first with Python 2.5 on Gentoo (and
couldn't reproduce on SUSE 11.0) and then with Python 2.6 on SUSE and
Windows XP.

What happens, if you do this from a Python prompt:

>>> import wx
>>> app = wx.App()
>>> rect1 = wx.Rect(0, 50, 10, 100)
>>> rect2 = wx.Rect(0, 25, 50, 200)
>>> wx.IntersectRect(rect1, rect2)
   --- You _should_ get this:
wx.Rect(0, 50, 10, 100)

Instead, Python might crash. In that case, change dGrid.py:

Starting with Line 2348:

                for idx, col in enumerate(self._columns):
                        headerRect = col._getHeaderRect()
                        # Mail Paul McNett 4.11.08:
                        intersect = headerRect
                        # original version:
                        # intersect = wx.IntersectRect(updateBox, headerRect)
                        if intersect is None:
                                # column isn't visible
                                continue

Speaking for myself, I haven't yet seen other incompatibilities with
Python 2.6 and wxPython 2.8 (I use 2.8.8.1 on openSUSE 11.1 and 2.8.9.1
on Windows).

HTH,
Sibylle


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to