本文整理汇总了Python中PyQt4.QtCore.QEvent.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python QEvent.__init__方法的具体用法?Python QEvent.__init__怎么用?Python QEvent.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.QtCore.QEvent
的用法示例。
在下文中一共展示了QEvent.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, etype, key, value=None, oldValue=None):
"""
Initialize the event instance
"""
QEvent.__init__(self, etype)
self.__key = key
self.__value = value
self.__oldValue = oldValue
示例2: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, function, args, kwargs):
QEvent.__init__(self, QueuedCallEvent.QueuedCall)
self.function = function
self.args = args
self.kwargs = kwargs
self._result = None
self._exc_info = None
self._state = 0
示例3: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self):
QEvent.__init__(self, self.event_type)
示例4: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, func, *args):
QEvent.__init__(self, self.EventType)
if len(args) > 0:
self.thunk = partial(func, *args)
else:
self.thunk = func
示例5: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, initstate):
QEvent.__init__(self, WidgetManager.WidgetInitEvent.DelayedInit)
self._initstate = initstate
示例6: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, _, event):
QEvent.__init__(self, _)
self.event = event
示例7: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, state):
QEvent.__init__(self, StateChangedEvent.StateChanged)
self._state = state
示例8: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, cur_img, nb_pts):
QEvent.__init__(self, QEvent.User)
self.currentImage = cur_img
self.nbPoints = nb_pts
示例9: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, fn, *args, **kwargs):
QEvent.__init__(self, InvokeEvent.EVENT_TYPE)
self.fn = fn
self.args = args
self.kwargs = kwargs
示例10: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self):
QEvent.__init__(self, FinishImageGrowthEvent.event_type)
示例11: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, func, *args, **kwargs):
QEvent.__init__(self, QEvent.User)
self.func = func
self.args = args
self.kwargs = kwargs
示例12: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, etype):
QEvent.__init__(self, etype)
示例13: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, msg):
QEvent.__init__(self, QEvent.User)
self.msg = msg
self.src = msg.src
self._type = msg.type
示例14: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self):
QEvent.__init__(self, self.ActivateParent)
示例15: __init__
# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
def __init__(self, config):
QEvent.__init__(self, 11003)
self.config = config