PyPO User Manual
GUI.SubprocessManager.SubprocessManager Class Reference

Manager for running functions in subprocess. More...

Public Member Functions

None __init__ (self, parentWidget)
 
def waiterFinished (self, success)
 To be connected to the finished signal of the waiter object. More...
 
def runInSubprocess (self, work, args, dialogText="")
 Runs a function in a subprocess. More...
 

Public Attributes

 parentWidget
 
 subProcessRunning
 
 currentCalculationDialog
 
 waiterThread
 

Detailed Description

Manager for running functions in subprocess.

Member Function Documentation

◆ runInSubprocess()

def GUI.SubprocessManager.SubprocessManager.runInSubprocess (   self,
  work,
  args,
  dialogText = "" 
)

Runs a function in a subprocess.

Parameters
workFunction to be run in subprocess
argsTuple of the arguments work takes
dialogTextString to be shown in the waiting dialog; defaults to "Calculating"

◆ waiterFinished()

def GUI.SubprocessManager.SubprocessManager.waiterFinished (   self,
  success 
)

To be connected to the finished signal of the waiter object.

Parameters
successBoolean, determines wether calculation finished successfully

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