UiFile

class cgp_generic_utils.files.UiFile(path)

Bases: cgp_generic_utils.files.File

file object that manipulates a .ui file on the file system

compile(targetDirectory=None)

compile the ui file

Parameters:targetDirectory (str or cgp_generic_utils.files.Directory) – directory of the compiled Ui - if not specified, command will use the UiFile directory
Returns:the compiled file
Return type:cgp_generic_utils.files.PyFile
classmethod create(path, content=None, **__)

create a ui file

Parameters:
  • path (str) – path of the ui file
  • content (any) – content of the ui file
Returns:

the created ui file

Return type:

cgp_generic_utils.files.UiFile