This text file explain the various functions available to develop javascripts for Krita :

*********** Static objects ***********
Static objects allow to interact whith the application.

* MainWindow
 - MainWindow.raise() : this function raises the main window
 - MainWindow.lower() : this function lowers the main window
 - MainWindow.close() : this function closes the main window

********** Dynamic Objects ***********
Dynamic objects are objects that can be created.

* PaintDevice