Пример #1
0
 def __init__(self, parent=None):
     QUiLoader.__init__(self, parent)
     self._store = []
     if parent is not None:
         self._store.append(parent)
     self._custom_widgets = {}
     self._promotions = {}
     self.toplevel_instance = None
Пример #2
0
    def __init__(self, window, customWidgets=None):
        QUiLoader.__init__(self)
        self.window = window

        # Register all the custom widgets so that they can be created later
        self.customWidgets = customWidgets
        if customWidgets is not None:
            for wid in customWidgets:
                self.registerCustomWidget(wid)
Пример #3
0
    def __init__(self, baseinstance):
        """
        Create a loader for the given ``baseinstance``.

        The user interface is created in ``baseinstance``, which must be an
        instance of the top-level class in the user interface to load, or a
        subclass thereof.

        ``parent`` is the parent object of this loader.
        """
        QUiLoader.__init__(self, baseinstance)
        self.baseinstance = baseinstance
 def __init__(self, baseinstance, customWidgets=None):
     """
     Create a loader for the given baseinstance.
     The user interface is created in ``baseinstance``, which must be an
     instance of the top-level class in the user interface to load, or a
     subclass thereof.
     customWidgets is a dictionary mapping from class name to class object
     for widgets that you've promoted in the Qt Designer interface. Usually,
     this should be done by calling registerCustomWidget on the QUiLoader, but
     with PySide 1.1.2 on Ubuntu 12.04 x86_64 this causes a segfault.
     """
     QUiLoader.__init__(self, baseinstance)
     self.baseinstance = baseinstance
     self.customWidgets = customWidgets
Пример #5
0
 def __init__(self, baseinstance):
     QUiLoader.__init__(self)
     self.baseinstance = baseinstance
Пример #6
0
 def __init__(self, baseinstance):
     QUiLoader.__init__(self)
     self.baseinstance = baseinstance
     self._widgets = []
Пример #7
0
 def __init__(self, baseInstance, customWidgets=None):
     QUiLoader.__init__(self, baseInstance)
     self.baseInstance = baseInstance
     self.customWidgets = customWidgets
Пример #8
0
 def __init__(self, baseinstance):
     QUiLoader.__init__(self)
     self.baseinstance = baseinstance
     self._widgets = []
Пример #9
0
 def __init__(self, inTarget):
     QUiLoader.__init__(self, inTarget)
     self.mTarget = inTarget