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

Method initialize

plugins/python/tenscripts/uitenscripts.py:41–60  ·  view source on GitHub ↗
(self, tenscripts)

Source from the content-addressed store, hash-verified

39 self.scrollArea.setWidgetResizable(True)
40
41 def initialize(self, tenscripts):
42 self.tenscripts = tenscripts
43
44 self._loadGridLayout()
45 self._fillScripts()
46
47 self.baseArea.setLayout(self.scriptsLayout)
48 self.scrollArea.setWidget(self.baseArea)
49
50 self.layout.addWidget(self.scrollArea)
51
52 self.layout.addWidget(
53 QLabel(i18n("Shortcuts are configurable through the <i>Keyboard Shortcuts</i> "
54 "interface in Krita's settings.")))
55
56 self.layout.addWidget(self.buttonBox)
57
58 self.mainDialog.show()
59 self.mainDialog.activateWindow()
60 self.mainDialog.exec()
61
62 def addNewRow(self, index):
63 rowPosition = self.scriptsLayout.rowCount()

Callers

nothing calls this directly

Calls 8

_loadGridLayoutMethod · 0.95
_fillScriptsMethod · 0.95
activateWindowMethod · 0.80
QLabelClass · 0.50
setWidgetMethod · 0.45
addWidgetMethod · 0.45
showMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected