parameters: (self)
docstring: Uninitializes the framework and should be called before a managed frame or
          window is destroyed. :meth:`UnInit` is usually called in the managed :class:`Frame` / :class:`Window`
          destructor.
  
          It is necessary to call this function before the managed frame or window is
          destroyed, otherwise the manager cannot remove its custom event handlers
          from a window.
docstring_summary: Uninitializes the framework and should be called before a managed frame or
          window is destroyed. :meth:`UnInit` is usually called in the managed :class:`Frame` / :class:`Window`
          destructor.
docstring_tokens: Uninitializes the framework and should be called before a managed frame or window is destroyed . : meth : UnInit is usually called in the managed : class : Frame / : class : Window destructor .
function: def UnInit(self):
          """
          Uninitializes the framework and should be called before a managed frame or
          window is destroyed. :meth:`UnInit` is usually called in the managed :class:`Frame` / :class:`Window`
          destructor.
  
          It is necessary to call this function before the managed frame or window is
          destroyed, otherwise the manager cannot remove its custom event handlers
          from a window.
          """
  
          if not self._frame:
              return
  
          for klass in [self._frame] + list(self._frame.GetChildren()):
              handler = klass.GetEventHandler()
              if klass is not handler:
                  if isinstance(handler, AuiManager):
                      klass.RemoveEventHandler(handler)
function_tokens: def UnInit ( self ) : if not self . _frame : return for klass in [ self . _frame ] + list ( self . _frame . GetChildren ( ) ) : handler = klass . GetEventHandler ( ) if klass is not handler : if isinstance ( handler , AuiManager ) : klass . RemoveEventHandler ( handler )