def load_ui(self, path: str):
"""Load in .ui file created by Qt Designer."""
if not isabs(path):
# If path is relative find ui file relative to file containing QWidgetNodeBase child class.
path = join(dirname(inspect.getfile(sys._getframe(1))), path)
uic.loadUi(path, self)
评论列表
文章目录