viewerapplication

Module contains the ViewerApplication class

class tuiview.viewerapplication.ViewerApplication[source]

Main class for application

savePluginHandler(handler)[source]

Plugins need to be able to save an instance of their signal handling object so it doesn’t get cleaned up by Python’s garbage collection. There are a number of ways to address this, but this seems the cleanest.

Get an instance of this ViewerApplication class in the plugin by using the:
app = QApplication.instance()

Call.

tuiview.viewerapplication.getCmdargs()[source]

Get commandline arguments

tuiview.viewerapplication.run()[source]

Call this function to instantiate an instance of ViewerApplication and have the command line parameters inspected etc and app run