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

Method _selectScript

plugins/python/tenscripts/uitenscripts.py:104–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 textField.setText("")
103
104 def _selectScript(self):
105 dialog = FileDialog(self.mainDialog)
106 dialog.setNameFilter(i18n("Python files (*.py)"))
107 selectedFile = dialog.filename()
108
109 if selectedFile:
110 obj = self.mainDialog.sender()
111 textField = self.scriptsLayout.itemAt(
112 self.scriptsLayout.indexOf(obj) - 2).widget()
113 textField.setText(selectedFile)
114
115 def _loadGridLayout(self):
116 for index in range(0, 10):

Callers

nothing calls this directly

Calls 6

setNameFilterMethod · 0.95
filenameMethod · 0.95
widgetMethod · 0.45
itemAtMethod · 0.45
indexOfMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected