parameters: (self, evt)
docstring: Close the currently active window
          @param evt: wx.MenuEvent
docstring_summary: Close the currently active window
          @param evt: wx.MenuEvent
docstring_tokens: Close the currently active window @param evt : wx . MenuEvent
function: def OnCloseWindow(self, evt):
          """Close the currently active window
          @param evt: wx.MenuEvent
  
          """
          if evt.GetId() in [ed_glob.ID_CLOSE, ed_glob.ID_CLOSE_WINDOW]:
              for window in wx.GetTopLevelWindows():
                  if hasattr(window, 'IsActive') and window.IsActive():
                      if hasattr(window, 'Close'):
                          window.Close()
                      break
          else:
              evt.Skip()
function_tokens: def OnCloseWindow ( self , evt ) : if evt . GetId ( ) in [ ed_glob . ID_CLOSE , ed_glob . ID_CLOSE_WINDOW ] : for window in wx . GetTopLevelWindows ( ) : if hasattr ( window , 'IsActive' ) and window . IsActive ( ) : if hasattr ( window , 'Close' ) : window . Close ( ) break else : evt . Skip ( )