packages/pyglGA/GUI/Viewer.py
def init(self):
        """
        Calls Decoratee init() and also sets up events
        """
        self.wrapeeWindow.init()
        if self._imguiContext is None:
            print("Window could not be created! ImGUI Error: ")
            exit(1)
        else:
            print("Yay! ImGUI context created successfully")
        
        # GPTODO here is the issue: SDL2Decorator takes an SDLWindow as wrappee wheras
        # ImGUIDEcorator takes and SDL2Decorator and decorates it!
        if isinstance(self.wrapeeWindow, SDL2Window):   
            self._imguiRenderer = SDL2Renderer(self.wrapeeWindow._gWindow)
            
        #
        # Setting up events that this class is publishing (if the EventManager is present in the decorated wrappee)
        #
        self._updateWireframe = pyglGA.ECSS.Event.Event(name="OnUpdateWireframe", id=201, value=None)
        if self._wrapeeWindow.eventManager is not None:
            self._wrapeeWindow.eventManager._events[self._updateWireframe.name] = self._updateWireframe
            self._wrapeeWindow.eventManager._publishers[self._updateWireframe.name] = self
        
        print(f'{self.getClassName()}: init()')

        Calls Decoratee init() and also sets up events
        
Calls Decoratee init() and also sets up events
Calls Decoratee init () and also sets up events
def init(self):
        self.wrapeeWindow.init()
        if self._imguiContext is None:
            print("Window could not be created! ImGUI Error: ")
            exit(1)
        else:
            print("Yay! ImGUI context created successfully")
        if isinstance(self.wrapeeWindow, SDL2Window):   
            self._imguiRenderer = SDL2Renderer(self.wrapeeWindow._gWindow)
         Setting up events that this class is publishing (if the EventManager is present in the decorated wrappee)
        self._updateWireframe = pyglGA.ECSS.Event.Event(name="OnUpdateWireframe", id=201, value=None)
        if self._wrapeeWindow.eventManager is not None:
            self._wrapeeWindow.eventManager._events[self._updateWireframe.name] = self._updateWireframe
            self._wrapeeWindow.eventManager._publishers[self._updateWireframe.name] = self
        print(f'{self.getClassName()}: init()')
def init ( self ) : self . wrapeeWindow . init ( ) if self . _imguiContext is None : print ( "Window could not be created! ImGUI Error: " ) exit ( 1 ) else : print ( "Yay! ImGUI context created successfully" ) if isinstance ( self . wrapeeWindow , SDL2Window ) : self . _imguiRenderer = SDL2Renderer ( self . wrapeeWindow . _gWindow ) self . _updateWireframe = pyglGA . ECSS . Event . Event ( name = "OnUpdateWireframe" , id = 201 , value = None ) if self . _wrapeeWindow . eventManager is not None : self . _wrapeeWindow . eventManager . _events [ self . _updateWireframe . name ] = self . _updateWireframe self . _wrapeeWindow . eventManager . _publishers [ self . _updateWireframe . name ] = self print ( f'{self.getClassName()}: init()' )
Calls Decoratee init() and also sets up events
Calls Decoratee init () and also sets up events
"""
        Calls Decoratee init() and also sets up events
        """ # GPTODO here is the issue: SDL2Decorator takes an SDLWindow as wrappee wheras # ImGUIDEcorator takes and SDL2Decorator and decorates it! # # Setting up events that this class is publishing (if the EventManager is present in the decorated wrappee) #
self