def _load_ui_pyqt5(path, parent): from PyQt5.uic import loadUi return loadUi(path, parent)
def _load_ui_pyside(path, parent, custom_widgets=None): from PySide import loadUi if custom_widgets is not None: custom_widgets = dict( (widget.__name__, widget) for widget in custom_widgets) return loadUi(path, parent, customWidgets=custom_widgets)
def _load_ui_pyside(path, parent, custom_widgets=None): from PySide import loadUi if custom_widgets is not None: custom_widgets = dict((widget.__name__, widget) for widget in custom_widgets) return loadUi(path, parent, customWidgets=custom_widgets)