code: def disable_glut(self):
          
          import OpenGL.GLUT as glut  # @UnresolvedImport
          from glut_support import glutMainLoopEvent  # @UnresolvedImport
  
          glut.glutHideWindow()  # This is an event to be processed below
          glutMainLoopEvent()
          self.clear_inputhook()
docs: Disable event loop integration with glut.
  
          This sets PyOS_InputHook to NULL and set the display function to a
          dummy one and set the timer to a dummy timer that will be triggered
          very far in the future.