load_ui

glue.utils.qt.load_ui(path, parent=None, directory=None)

Load a .ui file

Parameters:

path : str

Name of ui file to load

parent : QObject

Object to use as the parent of this widget

Returns:

w : QtWidgets.QWidget

The new widget