"Paul McNett" <[email protected]> schrieb:
> Mike Mabey wrote:
> > Hey guys,
> >
> > I've been out of the loop for a little while, so please excuse me if my
> > ignorance shows too much. I've recently changed computers and started
> > working with Python 2.6 as my default Python installation, but I also have
> > 2.5 for some older code that seems to crash when I try to run it under 2.6.
> > I'm still running Win XP and wxPython 2.8.
> >
> > So here's my situation: I've tried opening the ClassDesigner as I have
> > before, but after the "Open/Create Class" dialog is displayed and I click
> > "Open Saved Class" and select the .cdxml file I created before, it begins to
> > open the document and all the panels, but gets to a point where it crashes
> > totally, and I get the annoying windoze error, "python.exe has encountered a
> > problem and needs to close..."
> >
> > I just barely updated to revision 5147 this morning. Has anyone else seen
> > this kind of error? Is there some kind of compatibility error? I wish I
> > had more information, but there wasn't even a traceback provided with the
> > crash. I guess if no known issues could have caused this, my .cdxml file
> > may have been corrupted, even though in a text editor it looks okay.
>
> wxPython isn't working yet with Python 2.6, so you need to use Python 2.5
> with the
> class designer, dabo, and wxpython.
>
> Paul
>
But isn't this ClassDesigner crash the same I had earlier (first on
Gentoo, then with Python 2.6), when you gave me the workaround for
dGrid.py:
def _paintHeader(self, updateBox=None, _paintDC=False):
.....
for idx, col in enumerate(self._columns): # Line 2360
headerRect = col._getHeaderRect()
# Doesn't work with Python 2.6 and wxPython 2.8.9.1 and earlier,
# ok mit wxPython 2.8.9.2
intersect = wx.IntersectRect(updateBox, headerRect)
# Workaround McNett:
# intersect = headerRect
if intersect is None:
# column isn't visible
continue
...........
With wxPython 2.8.9.2 (on Windows XP, with Python 2.6.1) I don't even
need the workaround.
Mike, does the demo crash, if you choose dGrid?
HTH
Sibylle
--
Dr. Sibylle Koczian
_______________________________________________
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]