MCPcopy Create free account
hub / github.com/KDE/krita / openDocument

Method openDocument

plugins/python/scripter/documentcontroller.py:18–23  ·  view source on GitHub ↗
(self, filePath)

Source from the content-addressed store, hash-verified

16 return self._activeDocument
17
18 def openDocument(self, filePath):
19 if filePath:
20 newDocument = document.Document(filePath)
21 newDocument.open()
22 self._activeDocument = newDocument
23 return newDocument
24
25 def saveDocument(self, data, filePath, save_as=False):
26 """

Callers 12

_readSettingsMethod · 0.45
reloadFileMethod · 0.45
openMethod · 0.45
add_new_pageMethod · 0.45
slot_open_pageMethod · 0.45
slot_batch_resizeMethod · 0.45
save_out_pngsMethod · 0.45
openNewDocumentMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
modifyDocumentFunction · 0.45
checkDocumentFunction · 0.45

Calls 2

openMethod · 0.95
DocumentMethod · 0.80

Tested by 4

__init__Method · 0.36
__init__Method · 0.36
modifyDocumentFunction · 0.36
checkDocumentFunction · 0.36