def __init__(self, glconfig):
        """The graphical editor manages the OpenGL functions.

        It only works in combination with its controller.

        :param glconfig: Configuration flags for OpenGl
        """
        Gtk.DrawingArea.__init__(self)

        # default outer coordinate values which will later be overwritten by the controller
        self.left = -10
        self.right = 110
        self.top = 10
        self.bottom = -110

        # Used to generate unique ids for drawn objects
        self.name_counter = 0

        # Set OpenGL-capability to the drawing area
        self.set_gl_capability(glconfig)

        # Needed for glut functions
        glutInit([])

        # Connect the relevant signals.
        self.connect_after('realize', self._realize)
        self.connect('configure_event', self._configure)
def __init__ ( self , glconfig ) : Gtk . DrawingArea . __init__ ( self ) self . left = - 10 self . right = 110 self . top = 10 self . bottom = - 110 self . name_counter = 0 self . set_gl_capability ( glconfig ) glutInit ( [ ] ) self . connect_after ( 'realize' , self . _realize ) self . connect ( 'configure_event' , self . _configure )
The graphical editor manages the OpenGL functions.

        It only works in combination with its controller.

        :param glconfig: Configuration flags for OpenGl