parameters: (self)
docstring: Qt thread should call close() after this widget should be closed down to stop
          any existing Qt callbacks.
docstring_summary: Qt thread should call close() after this widget should be closed down to stop
          any existing Qt callbacks.
docstring_tokens: Qt thread should call close () after this widget should be closed down to stop any existing Qt callbacks .
function: def close(self):
          """Qt thread should call close() after this widget should be closed down to stop
          any existing Qt callbacks."""
          if not self.initialized:
              return
          print "######### QGLWidget close ###############"
          self.idleTimer.stop()
          self.idleTimer.deleteLater()
          self.idleTimer = None
          if self.program:
              self.program.window = None
          self.program = None
          self.initialized = False
function_tokens: def close ( self ) : if not self . initialized : return print "######### QGLWidget close ###############" self . idleTimer . stop ( ) self . idleTimer . deleteLater ( ) self . idleTimer = None if self . program : self . program . window = None self . program = None self . initialized = False