本文整理匯總了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