Hey man, I'm not using PyPE for life support :D so tomorrow sounds fine :D anyway the bugs were not show stoppers.
Keep up the good work ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-08-11
My code tree (that panel in the top right with all the method/class listings) isn't refreshing at all with wxPython 2.5. I checked in the console, traced the error, and nuked one parameter of code. Refresh ENABLED :D
def getchlist(self, parent):
#when using ItemHasChildren(parent)
#an assert exception saying "can't retrieve virtual root item"
#kept coming up.
#for some reason GetChildrenCount(parent, 0) doesn't.
numchildren = self.GetChildrenCount(parent, 0)
lst = {}
if numchildren>0:
ch, cookie = self.GetFirstChild(parent)#, wxNewId()) <--- Nuked parameter
lst[self.GetItemText(ch)] = [ch]
for i in xrange(numchildren-1):
ch, cookie = self.GetNextChild(parent, cookie)
txt = self.GetItemText(ch)
if txt in lst:
lst[txt].append(ch)
else:
lst[txt] = [ch]
return lst
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
there are a lot of problems with this combo...
Will there be a PyPE version for 2.5.x version of wx ?
I'll update PyPE to use wxPython 2.5 when I have the
time. I'll try to make time for it tomorrow, but today I've got classes unti 7PM.
Hey man, I'm not using PyPE for life support :D so tomorrow sounds fine :D anyway the bugs were not show stoppers.
Keep up the good work ;)
My code tree (that panel in the top right with all the method/class listings) isn't refreshing at all with wxPython 2.5. I checked in the console, traced the error, and nuked one parameter of code. Refresh ENABLED :D
def getchlist(self, parent):
#when using ItemHasChildren(parent)
#an assert exception saying "can't retrieve virtual root item"
#kept coming up.
#for some reason GetChildrenCount(parent, 0) doesn't.
numchildren = self.GetChildrenCount(parent, 0)
lst = {}
if numchildren>0:
ch, cookie = self.GetFirstChild(parent)#, wxNewId()) <--- Nuked parameter
lst[self.GetItemText(ch)] = [ch]
for i in xrange(numchildren-1):
ch, cookie = self.GetNextChild(parent, cookie)
txt = self.GetItemText(ch)
if txt in lst:
lst[txt].append(ch)
else:
lst[txt] = [ch]
return lst
I also found that bug while working on PyPE 2.x. Now there are two reasons to cut a 1.9.4 release. If I have time, I'll make it happen.