from .sketchbookmode import SketchbookMode app = Krita.instance() extension = SketchbookMode(parent = app) app.addExtension(extension)