load_ui

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

Load a .ui file

Parameters
pathstr

Name of ui file to load

parentQObject

Object to use as the parent of this widget

Returns
wQtWidgets.QWidget

The new widget