I am getting this traceback:
Traceback (most recent call last):
File "/home/amentis/Dropbox/Rexi/index.py", line 21, in application
ui = Console.Console()
File "/home/amentis/Dropbox/Rexi/UI/Console.py", line 9, in __init__
self.__window = Window.Window(self, 'consoleWindow')
File "/home/amentis/Dropbox/Rexi/RxAPI/RxGUI/Window.py", line 16, in __init__
self.__parent.add_child(self)
AttributeError: 'Window' object has no attribute '_Window__parent'
Here is a portion of the Console class:
class Console(Screen.Screen):
def __init__(self):
super().__init__("REXI Console")
self.__window = Window.Window(self, 'consoleWindow')
Of the Window class:
class Window(RxGUIObject.RxGUIObject):
def __init__(self, parent, name):
RxGUIObject.RxGUIObject.__init__(self, name, parent)
self.__body = ""
self.__javascript = ""
self.__css = ""
self.__parent.add_child(self)
and the RxGUIObject:
class RxGUIObject(RxObject.RxObject):
def __init__(self, name, parent):
RxObject.RxObject.__init__(self, name)
self.__parent = parent
self.__children = list
Is Window.__parent
not created or not existent and why?