Gtk.Container.do_forall gets invalid instance
@creiter
Submitted by Christoph Reiter Link to original bug (#722562)
Description
##############
from gi.repository import Gtk import traceback
class Bug(Gtk.Container): def init(self): self.children = [] Gtk.Container.init(self) self.set_has_window(False)
def do_forall(self, *args):
try:
print(self)
print(self.children)
except:
traceback.print_exc()
Bug().destroy()
##############
<Bug object at 0x226eeb0 (__main__+Bug at 0x2519270)> [] <Bug object at 0x227e730 (__main__+Bug at 0x2519270)> Traceback (most recent call last): File "a.py", line 13, in do_forall print(self.children) AttributeError: 'Bug' object has no attribute 'children'
#########