Provides PySide dynamic .ui file loading similar to the PyQt uic functionality.
pip install git+https://github.com/bpabel/pysideuic.git
The loadUi()
function takes a path to .ui file and an object to load it onto.
from PySide import QtGui
from pysideuic import loadUi
class MyWidget(QtGui.QWidget):
def __init__(self, *args, **kwargs):
super(MyWidget, self).__init__(*args, **kwargs)
loadUi('mywidget.ui', self)