Module watchdogTimer :: Class WatchdogTimer
[hide private]
[frames] | no frames]

Class WatchdogTimer

source code

       object --+                
                |                
sip.simplewrapper --+            
                    |            
          sip.wrapper --+        
                        |        
     PyQt4.QtCore.QObject --+    
                            |    
          PyQt4.QtCore.QTimer --+
                                |
                               WatchdogTimer

Instance Methods [hide private]
 
__init__(self, timeout=1, callback=None, callbackArg=None, selfTest=False)
Create watchdog.
source code
 
timedOut(self) source code
 
kick(self, _timeout=None, callback=None, callbackArg=None)
(Re)-start the timer
source code
 
stop(self) source code
 
changeTimeout(self, newTimeout) source code
 
changeCallback(self, newCallback) source code
 
changeCallbackArg(self, newArg) source code
 
timerExpiredHandler(self) source code
 
runSelfTest(self) source code
 
testTimeoutHandler(self) source code

Inherited from PyQt4.QtCore.QTimer: interval, isActive, isSingleShot, setInterval, setSingleShot, singleShot, start, timeout, timerEvent, timerId

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, tr, trUtf8

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, timeout=1, callback=None, callbackArg=None, selfTest=False)
(Constructor)

source code 

Create watchdog.

Parameters:
  • timeout (float) - number of seconds that are set each time the timer is kicked.
  • callback (Python callable) - callable to invoke when timer expires.
  • callbackArg (any) - any argument to pass to the callback
  • selfTest (boolean) - set to true if testing the class
Overrides: object.__init__

kick(self, _timeout=None, callback=None, callbackArg=None)

source code 

(Re)-start the timer

Parameters:
  • _timeout (float) - timeout in seconds
  • callback (callable) - Python callable to invoke when timer expires.
  • callbackArg (any) - argument to pass to callback

stop(self)

source code 
Overrides: PyQt4.QtCore.QTimer.stop