packages/pyglGA/GUI/Viewer.py
def extra(self):
        """sample ImGUI widgets to be rendered on a RenderWindow
        """
        imgui.set_next_window_size(300.0, 150.0)
        
        #start new ImGUI frame context
        imgui.new_frame()
        
        #demo ImGUI window with all widgets
        imgui.show_test_window()
        #new custom imgui window
        imgui.begin("pyglGA ImGUI window", True)
        #labels inside the window
        imgui.text("PyImgui + PySDL2 integration successful!")
        imgui.text(self._wrapeeWindow._gVersionLabel)
        
        # populate window with extra UI elements
        imgui.separator()
        imgui.new_line()
        #
        # wireframe Event updates the GL state
        self._changed, self._checkbox = imgui.checkbox("Wireframe", self._wireframeMode)
        if self._changed:
            if self._checkbox is True:
                self._wireframeMode = True
                self._updateWireframe.value = self._wireframeMode
                if self._wrapeeWindow.eventManager is not None:
                    self.wrapeeWindow.eventManager.notify(self, self._updateWireframe) 
                print(f"wireframe: {self._wireframeMode}")
            if self._checkbox is False:
                self._wireframeMode = False
                self._updateWireframe.value = self._wireframeMode
                if self._wrapeeWindow.eventManager is not None:
                    self.wrapeeWindow.eventManager.notify(self, self._updateWireframe) 
                print(f"wireframe: {self._wireframeMode}")
        #
        # simple slider for color
        self._changed, self._colorEditor = imgui.color_edit3("Color edit", *self._colorEditor)
        if self._changed:
             print(f"_colorEditor: {self._colorEditor}")
        imgui.separator()
        #
        # simple FPS counter
        strFrameRate = str(("Application average: ", imgui.get_io().framerate, " FPS"))
        imgui.text(strFrameRate)
        #end imgui frame context
        imgui.end()
        
        #print(f'{self.getClassName()}: extra()')
sample ImGUI widgets to be rendered on a RenderWindow
        
sample ImGUI widgets to be rendered on a RenderWindow
sample ImGUI widgets to be rendered on a RenderWindow
def extra(self):
        imgui.set_next_window_size(300.0, 150.0)
        imgui.new_frame()
        imgui.show_test_window()
        imgui.begin("pyglGA ImGUI window", True)
        imgui.text("PyImgui + PySDL2 integration successful!")
        imgui.text(self._wrapeeWindow._gVersionLabel)
        imgui.separator()
        imgui.new_line()
         wireframe Event updates the GL state
        self._changed, self._checkbox = imgui.checkbox("Wireframe", self._wireframeMode)
        if self._changed:
            if self._checkbox is True:
                self._wireframeMode = True
                self._updateWireframe.value = self._wireframeMode
                if self._wrapeeWindow.eventManager is not None:
                    self.wrapeeWindow.eventManager.notify(self, self._updateWireframe) 
                print(f"wireframe: {self._wireframeMode}")
            if self._checkbox is False:
                self._wireframeMode = False
                self._updateWireframe.value = self._wireframeMode
                if self._wrapeeWindow.eventManager is not None:
                    self.wrapeeWindow.eventManager.notify(self, self._updateWireframe) 
                print(f"wireframe: {self._wireframeMode}")
         simple slider for color
        self._changed, self._colorEditor = imgui.color_edit3("Color edit", *self._colorEditor)
        if self._changed:
             print(f"_colorEditor: {self._colorEditor}")
        imgui.separator()
         simple FPS counter
        strFrameRate = str(("Application average: ", imgui.get_io().framerate, " FPS"))
        imgui.text(strFrameRate)
        end imgui frame context
        imgui.end()
        print(f'{self.getClassName()}: extra()')
def extra ( self ) : imgui . set_next_window_size ( 300.0 , 150.0 ) imgui . new_frame ( ) imgui . show_test_window ( ) imgui . begin ( "pyglGA ImGUI window" , True ) imgui . text ( "PyImgui + PySDL2 integration successful!" ) imgui . text ( self . _wrapeeWindow . _gVersionLabel ) imgui . separator ( ) imgui . new_line ( ) self . _changed , self . _checkbox = imgui . checkbox ( "Wireframe" , self . _wireframeMode ) if self . _changed : if self . _checkbox is True : self . _wireframeMode = True self . _updateWireframe . value = self . _wireframeMode if self . _wrapeeWindow . eventManager is not None : self . wrapeeWindow . eventManager . notify ( self , self . _updateWireframe ) print ( f"wireframe: {self._wireframeMode}" ) if self . _checkbox is False : self . _wireframeMode = False self . _updateWireframe . value = self . _wireframeMode if self . _wrapeeWindow . eventManager is not None : self . wrapeeWindow . eventManager . notify ( self , self . _updateWireframe ) print ( f"wireframe: {self._wireframeMode}" ) self . _changed , self . _colorEditor = imgui . color_edit3 ( "Color edit" , * self . _colorEditor ) if self . _changed : print ( f"_colorEditor: {self._colorEditor}" ) imgui . separator ( ) strFrameRate = str ( ( "Application average: " , imgui . get_io ( ) . framerate , " FPS" ) ) imgui . text ( strFrameRate ) imgui . end ( )
sample ImGUI widgets to be rendered on a RenderWindow
sample ImGUI widgets to be rendered on a RenderWindow
"""sample ImGUI widgets to be rendered on a RenderWindow
        """ #start new ImGUI frame context #demo ImGUI window with all widgets #new custom imgui window #labels inside the window # populate window with extra UI elements # # wireframe Event updates the GL state # # simple slider for color # # simple FPS counter #end imgui frame context #print(f'{self.getClassName()}: extra()')
self