parameters: (name)
docstring: Close temporary viewers
docstring_summary: Close temporary viewers
docstring_tokens: Close temporary viewers
function: def closeViewer(name):
  
      """Close temporary viewers"""
  
      mw = FreeCADGui.getMainWindow()
      for sw in mw.findChildren(QtGui.QMdiSubWindow):
          if sw.windowTitle() == name:
              sw.close()
function_tokens: def closeViewer ( name ) : mw = FreeCADGui . getMainWindow ( ) for sw in mw . findChildren ( QtGui . QMdiSubWindow ) : if sw . windowTitle ( ) == name : sw . close ( )