Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
core.__main__.AppWatchdog Class Reference

This class periodically runs a function for debugging and handles application exit. More...

Inheritance diagram for core.__main__.AppWatchdog:
Inheritance graph
[legend]
Collaboration diagram for core.__main__.AppWatchdog:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self)
 
def donothing (self)
 This function does nothing for debugging purposes.
 
def setupParentPoller (self, manager)
 Set up parent pooler to find out when parent process is killed. More...
 
def quitProxy (self, obj)
 Helper function to emit doQuit signal. More...
 
def quitApplication (self, manager, restart=False)
 Clean up threads and windows, quit application. More...
 

Public Attributes

 alreadyQuit
 
 hasGui
 
 exitcode
 
 timer
 
 parent_handle
 
 interrupt
 
 poller
 

Static Public Attributes

 sigDoQuit = QtCore.Signal(object)
 

Detailed Description

This class periodically runs a function for debugging and handles application exit.

Member Function Documentation

◆ quitApplication()

def core.__main__.AppWatchdog.quitApplication (   self,
  manager,
  restart = False 
)

Clean up threads and windows, quit application.

Parameters
objectmanager: manager belonging to this application

◆ quitProxy()

def core.__main__.AppWatchdog.quitProxy (   self,
  obj 
)

Helper function to emit doQuit signal.

Parameters
objobject: object passed to doQuit

◆ setupParentPoller()

def core.__main__.AppWatchdog.setupParentPoller (   self,
  manager 
)

Set up parent pooler to find out when parent process is killed.

Parameters
managerManager: manager reference

The documentation for this class was generated from the following file: