Did I find the right examples for you? yes no

All Samples(293)  |  Call(274)  |  Derive(0)  |  Import(19)
loadUi(uifile, baseinstance=None, package='') -> widget

Load a Qt Designer .ui file and return an instance of the user interface.

uifile is a file name or file-like object containing the .ui file.
baseinstance is an optional instance of the Qt base class.  If specified
then the user interface is created in it.  Otherwise a new instance of the
base class is automatically created.
package is the optional package which is used as the base for any relative
imports of custom widgets.(more...)

        def loadUi(uifile, baseinstance=None, package='', resource_suffix='_rc'):
    """loadUi(uifile, baseinstance=None, package='') -> widget

    Load a Qt Designer .ui file and return an instance of the user interface.

    uifile is a file name or file-like object containing the .ui file.
    baseinstance is an optional instance of the Qt base class.  If specified
    then the user interface is created in it.  Otherwise a new instance of the
    base class is automatically created.
    package is the optional package which is used as the base for any relative
    imports of custom widgets.
    resource_suffix is the suffix appended to the basename of any resource file
    specified in the .ui file to create the name of the Python module generated
    from the resource file by pyrcc4.  The default is '_rc', i.e. if the .ui
    file specified a resource file called foo.qrc then the corresponding Python
    module is foo_rc.
    """

    from PyQt4.uic.Loader.loader import DynamicUILoader

    return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
        


src/p/y/PyQt4-HEAD/examples/pyuic/load_ui2.py   PyQt4(Download)
    def __init__(self, *args):
        super(DemoImpl, self).__init__(*args)
 
        uic.loadUi('demo.ui', self)
 

src/g/r/gr-0.5.0/examples/qtgrdemo.py   gr(Download)
    def __init__(self, *args, **kwargs):
        super(MainWindow, self).__init__(*args, **kwargs)
        uic.loadUi(os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                "qtgrdemo.ui"), self)
 

src/p/y/PyQt4-HEAD/examples/network/http/http.py   PyQt4(Download)
 
        ui = os.path.join(os.path.dirname(__file__), 'authenticationdialog.ui')
        dlg = uic.loadUi(ui)
        dlg.adjustSize()
        dlg.siteDescription.setText("%s at %s" % (authenticator.realm(), hostName))

src/p/y/PyQt4-HEAD/examples/pyuic/load_ui1.py   PyQt4(Download)
 
app = QtGui.QApplication(sys.argv)
widget = uic.loadUi('demo.ui')
widget.show()
sys.exit(app.exec_())

src/e/u/EuroPython2006_PyQt4_Examples-1.0/Models and Views/XML Tree Model/treemodel.py   EuroPython2006_PyQt4_Examples(Download)
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import SIGNAL
from PyQt4.uic import loadUi
 
from elementtree.ElementTree import parse, Element
    path = sys.argv[1]
 
    ui = loadUi(os.path.join(os.path.split(__file__)[0], "xmltreemodel.ui"))
 
    if True:

src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/RRQDebugger.py   PyRQ(Download)
    def _createScripter(self):
        self.scripter = Scripter(self)
        path = os.path.join(self.resourcesPath, Scripter.RESOURCE_NAME)
        uic.loadUi(path, self.scripter)
        self.scripter.show()
    def _createGlobalActions(self):
        self.globalActions = GlobalActionsModel(self)
        path = os.path.join(self.resourcesPath, GlobalActionsModel.RESOURCE_NAME)
        uic.loadUi(path, self.globalActions)
    def _onSetHost(self):
        mb = SetHostDialog(self.host, parent=self)
        path = os.path.join(self.resourcesPath, SetHostDialog.RESOURCE_NAME)
        uic.loadUi(path, baseinstance=mb)
        mb.setupUi()
        mb = AboutDialog(self.resourcesPath, self.host, details, parent=self)
        path = os.path.join(self.resourcesPath, AboutDialog.RESOURCE_NAME)
        uic.loadUi(path, baseinstance=mb)
        mb.setupUi()
        mb.exec_()
        mb = PyRQSelectorDialog(self, self.quiet, parent=self)
        path = os.path.join(self.resourcesPath, PyRQSelectorDialog.RESOURCE_NAME)
        uic.loadUi(path, baseinstance=mb)
        mb.setupUi(port=int(details.port())+1, host=details.host())
        result = mb.exec_()

src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/RRQTab.py   PyRQ(Download)
        self.theQueues = QueuesModel(self)
        path = os.path.join(self.debugger.resourcesPath, QueuesModel.RESOURCE_NAME)
        uic.loadUi(path, baseinstance=self.theQueues)
        self.theFilterer = FiltererModel(self)
        path = os.path.join(self.debugger.resourcesPath, FiltererModel.RESOURCE_NAME)
        uic.loadUi(path, baseinstance=self.theFilterer)
        self.rawQueueData = RawQueueData(self)
        path = os.path.join(self.debugger.resourcesPath, RawQueueData.RESOURCE_NAME)
        uic.loadUi(path, baseinstance=self.rawQueueData)
            mb = QueueActionDialog(resourcesPath, self, action)
            path = os.path.join(resourcesPath, QueueActionDialog.RESOURCE_NAME)
            uic.loadUi(path, baseinstance=mb)
            mb.setModal(False)
            mb.show()

src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/__init__.py   PyRQ(Download)
    app = QtGui.QApplication(sys.argv)
    inst = RRQDebugger(resourcesPath, details=details, quiet=quiet, host=host)
    uic.loadUi(path, baseinstance = inst)
    print "UI Show..."
    inst.show()

src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/FiltererModel.py   PyRQ(Download)
        mb = ConfigureFiltersDialog(self, config)
        path = os.path.join(resourcesPath, ConfigureFiltersDialog.RESOURCE_NAME)
        uic.loadUi(path, baseinstance=mb)
        mb.setupUi()
        result = mb.exec_()

src/p/y/pyul-0.0.4/pyul/guiUtils/qt/binding_helper.py   pyul(Download)
    def _loadUi(uifile, parent=None, baseinstance=None, custom_widgets=None):
        from PyQt4 import uic
        return uic.loadUi(uifile, baseinstance=baseinstance)
 
    # override specific function to improve compatibility between different bindings

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next