當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。