当前位置: 首页>>代码示例>>Python>>正文


Python QEvent.__init__方法代码示例

本文整理汇总了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
开发者ID:AutumnLight,项目名称:orange,代码行数:10,代码来源:settings.py

示例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
开发者ID:pauloortins,项目名称:Computer-Vision-Classes---UFBA,代码行数:10,代码来源:outputview.py

示例3: __init__

# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
 def __init__(self):
     QEvent.__init__(self, self.event_type)
开发者ID:PierreBdR,项目名称:point_tracker,代码行数:4,代码来源:plottingdlg.py

示例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
开发者ID:LimpingTwerp,项目名称:applet-workflows,代码行数:8,代码来源:thunkEvent.py

示例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
开发者ID:astaric,项目名称:orange-canvas,代码行数:5,代码来源:widgetsscheme.py

示例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
开发者ID:Tayyib,项目名称:uludag,代码行数:5,代码来源:ScrRescuePisi.py

示例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
开发者ID:CHANAYA,项目名称:orange3,代码行数:5,代码来源:concurrent.py

示例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
开发者ID:PierreBdR,项目名称:point_tracker,代码行数:6,代码来源:algo.py

示例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
开发者ID:oukiar,项目名称:Cryptully,代码行数:7,代码来源:qInvoker.py

示例10: __init__

# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
 def __init__(self):
     QEvent.__init__(self, FinishImageGrowthEvent.event_type)
开发者ID:PierreBdR,项目名称:point_tracker,代码行数:4,代码来源:growth_computation.py

示例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
开发者ID:DanielSoell,项目名称:picard,代码行数:7,代码来源:thread.py

示例12: __init__

# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
 def __init__(self, etype):
     QEvent.__init__(self, etype)
开发者ID:astaric,项目名称:orange-canvas,代码行数:4,代码来源:events.py

示例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
开发者ID:RikVerschueren,项目名称:AccordionMega,代码行数:7,代码来源:qgstobject.py

示例14: __init__

# 需要导入模块: from PyQt4.QtCore import QEvent [as 别名]
# 或者: from PyQt4.QtCore.QEvent import __init__ [as 别名]
 def __init__(self):
     QEvent.__init__(self, self.ActivateParent)
开发者ID:JingqinGao,项目名称:orange3,代码行数:4,代码来源:widgetsscheme.py

示例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
开发者ID:arxsys,项目名称:dff-api,代码行数:5,代码来源:thumbnail.py


注:本文中的PyQt4.QtCore.QEvent.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。