tobspr / LUI

Lightweight User Interface for Panda3D
MIT License
84 stars 24 forks source link

python 3.5 .get_children() infinite loop #19

Closed pmp-p closed 6 years ago

pmp-p commented 8 years ago

when attempting to add count children on python 3.5 LUI*Layout class needed to break the loop gone crazy :

def __len__(self):
        cnt=0
        for x in self.get_children():
            cnt+=1
            if cnt > 100:
                print('kernel panic !')
                break
tobspr commented 7 years ago

Not sure if this is still a problem, I believe this might be an issue in interrogate which might have been fixed. I will have a look