예제 #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, 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
예제 #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
예제 #4
0
    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.
        ``parent`` is the parent object of this loader.
        """

        QUiLoader.__init__(self, baseinstance)
        self.baseinstance = baseinstance
        self.customWidgets = customWidgets
예제 #5
0
    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.

        ``parent`` is the parent object of this loader.
        """
        QUiLoader.__init__(self, baseinstance)
        self.baseinstance = baseinstance
        self.customWidgets = customWidgets
예제 #6
0
 def __init__(self, target):
     QUiLoader.__init__(self)
     self._target = target
예제 #7
0
 def __init__(self, instance):
     QUiLoader.__init__(self, instance)
     self._instance = instance
예제 #8
0
 def __init__(self, baseinstance):
     QUiLoader.__init__(self, baseinstance)
     self.baseinstance = baseinstance
예제 #9
0
 def __init__(self, baseinstance):
     QUiLoader.__init__(self)
     self.baseinstance = baseinstance
     self._widgets = []
예제 #10
0
파일: uiloader.py 프로젝트: pszostek/cp
 def __init__(self, baseinstance):
     QUiLoader.__init__(self, baseinstance)
     self.baseinstance = baseinstance
     self.customWidgets = set()
예제 #11
0
 def __init__(self, baseinstance):
     QUiLoader.__init__(self)
     self.baseinstance = baseinstance
     self._widgets = []
예제 #12
0
 def __init__(self, baseinstance):
     QUiLoader.__init__(self, baseinstance)
     self.baseinstance = baseinstance
예제 #13
0
파일: qtview.py 프로젝트: Readon/mvpsample
 def __init__(self, custom_widget_types=[]):
     qloader.__init__(self)
     typedict = {}
     for each in custom_widget_types:
         typedict[each.__name__] = each
     self._custom_widgets = typedict
예제 #14
0
파일: qtview.py 프로젝트: Readon/mvpsample
 def __init__(self, custom_widget_types=[]):
     qloader.__init__(self)
     typedict = {}
     for each in custom_widget_types:
         typedict[each.__name__] = each
     self._custom_widgets = typedict