Module pythonqtpytson
[hide private]
[frames] | no frames]

Source Code for Module pythonqtpytson

 1  """ 
 2  Module PythonQt.pytson 
 3  """ 
 4   
 5  from PythonQt.QtCore import QObject 
 6   
 7   
8 -class EventFilterObject(QObject):
9 """ 10 Class to install as eventfilter on QObject-based objects. Connect to the 11 signal eventFiltered(QObject*, QEvent*) to receive the filtered event per 12 installEventFilter. 13 """ 14
15 - def __init__(self, typelist=list(), parent=None):
16 """ 17 Instantiates a new object. 18 @param typelist: list of Eventtypes to filter (see QEvent::Type). 19 Defaults to an empty list. 20 @type typelist: list(int) 21 @param parent: QObject-parent 22 @type parent: QObject 23 """ 24 pass
25
26 - def setFilterResult(self, val):
27 """ 28 Sets the return value the object should return in the 29 eventFilter-method. If not set, False will be returned 30 @param val: the value 31 @type val: bool 32 """ 33 pass
34
35 - def types(self):
36 """ 37 Returns the current list of eventtypes. 38 @return: the current eventtypes 39 @rtype: list(int) 40 """ 41 pass
42
43 - def addType(self, eventtype):
44 """ 45 Adds an eventtype to the list. 46 @param eventtype: an eventtype (see QEvent::Type) 47 @type eventtype: int 48 """ 49 pass
50
51 - def removeType(self, eventtype):
52 """ 53 Removes an eventtype from the list. 54 @param eventtype: an eventtype (see QEvent::Type) 55 @type eventtype: int 56 """ 57 pass
58