code: def compileUi(uifile, pyfile, execute=False, indent=4, from_imports=False, resource_suffix='_rc', import_from='.'):
      
  
      from PyQt5.QtCore import PYQT_VERSION_STR
  
      try:
          uifname = uifile.name
      except AttributeError:
          uifname = uifile
  
      indenter.indentwidth = indent
  
      pyfile.write(_header % (uifname, PYQT_VERSION_STR))
  
      winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports, resource_suffix, import_from)
  
      if execute:
          indenter.write_code(_display_code % winfo)
docs: compileUi(uifile, pyfile, execute=False, indent=4, from_imports=False, resource_suffix='_rc', import_from='.')
  
      Creates a Python module from a Qt Designer .ui file.
      
      uifile is a file name or file-like object containing the .ui file.
      pyfile is the file-like object to which the Python code will be written to.
      execute is optionally set to generate extra Python code that allows the
      code to be run as a standalone application.  The default is False.
      indent is the optional indentation width using spaces.  If it is 0 then a
      tab is used.  The default is 4.
      from_imports is optionally set to generate relative import statements.  At
      the moment this only applies to the import of resource modules.
      resource_suffix is the suffix appended to the basename of any resource file
      specified in the .ui file to create the name of the Python module generated
      from the resource file by pyrcc4.  The default is '_rc', i.e. if the .ui
      file specified a resource file called foo.qrc then the corresponding Python
      module is foo_rc.
      import_from is optionally set to the package used for relative import
      statements.  The default is ``'.'``.