本文整理汇总了Python中PySide.QtUiTools.QUiLoader.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python QUiLoader.__init__方法的具体用法?Python QUiLoader.__init__怎么用?Python QUiLoader.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PySide.QtUiTools.QUiLoader
的用法示例。
在下文中一共展示了QUiLoader.__init__方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from PySide.QtUiTools import QUiLoader [as 别名]
# 或者: from PySide.QtUiTools.QUiLoader import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from PySide.QtUiTools import QUiLoader [as 别名]
# 或者: from PySide.QtUiTools.QUiLoader import __init__ [as 别名]
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
示例3: __init__
# 需要导入模块: from PySide.QtUiTools import QUiLoader [as 别名]
# 或者: from PySide.QtUiTools.QUiLoader import __init__ [as 别名]
def __init__(self, target):
QUiLoader.__init__(self)
self._target = target
示例4: __init__
# 需要导入模块: from PySide.QtUiTools import QUiLoader [as 别名]
# 或者: from PySide.QtUiTools.QUiLoader import __init__ [as 别名]
def __init__(self, baseinstance):
QUiLoader.__init__(self, baseinstance)
self.baseinstance = baseinstance
示例5: __init__
# 需要导入模块: from PySide.QtUiTools import QUiLoader [as 别名]
# 或者: from PySide.QtUiTools.QUiLoader import __init__ [as 别名]
def __init__(self, baseinstance):
QUiLoader.__init__(self, baseinstance)
self.baseinstance = baseinstance
self.customWidgets = set()
示例6: __init__
# 需要导入模块: from PySide.QtUiTools import QUiLoader [as 别名]
# 或者: from PySide.QtUiTools.QUiLoader import __init__ [as 别名]
def __init__(self, baseinstance):
QUiLoader.__init__(self)
self.baseinstance = baseinstance
self._widgets = []
示例7: __init__
# 需要导入模块: from PySide.QtUiTools import QUiLoader [as 别名]
# 或者: from PySide.QtUiTools.QUiLoader import __init__ [as 别名]
def __init__(self, custom_widget_types=[]):
qloader.__init__(self)
typedict = {}
for each in custom_widget_types:
typedict[each.__name__] = each
self._custom_widgets = typedict