director.consoleapp module

class director.consoleapp.ConsoleApp[source]

Bases: object

static applicationInstance()[source]
createView(useGrid=True)[source]
static exit(exitCode=0)[source]
static getTestingArgs(dataDirRequired=False, outputDirRequired=False)[source]
static getTestingDataDirectory()[source]
static getTestingEnabled()[source]
static getTestingInteractiveEnabled()[source]
static getTestingOutputDirectory(outputDirRequired=True)[source]
static quit()[source]
setupGlobals(globalsDict)[source]
showObjectModel()[source]
static showPythonConsole()[source]
static start(enableAutomaticQuit=True)[source]

In testing mode, the application will quit automatically after starting unless enableAutomaticQuit is set to False. Tests that need to perform work after the QApplication has started can set this flag to False and call quit or exit themselves.

In testing mode, this function will register an exception hook so that tests will return on error code if an unhandled exception is raised.

static startQuitTimer(timeoutInSeconds)[source]
static startTestingModeQuitTimer(timeoutInSeconds=0.1)[source]
director.consoleapp.main(globalsDict=None)[source]