Project/CreateDialogCodeDialog.py

changeset 1148
ddc482ded355
parent 1139
b18376d58832
child 1206
1c9aa6215e7d
equal deleted inserted replaced
1147:5dc04e6593d7 1148:ddc482ded355
390 child = topItem.child(childRow) 390 child = topItem.child(childRow)
391 if child.checkState() and \ 391 if child.checkState() and \
392 child.flags() & Qt.ItemFlags(Qt.ItemIsUserCheckable): 392 child.flags() & Qt.ItemFlags(Qt.ItemIsUserCheckable):
393 slotsCode.append('{0}\n'.format(indentStr)) 393 slotsCode.append('{0}\n'.format(indentStr))
394 slotsCode.append('{0}{1}\n'.format( 394 slotsCode.append('{0}{1}\n'.format(
395 indentStr, 395 indentStr,
396 pyqtSignatureFormat.format(child.data(pyqtSignatureRole)))) 396 pyqtSignatureFormat.format(child.data(pyqtSignatureRole))))
397 slotsCode.append('{0}def {1}:\n'.format( 397 slotsCode.append('{0}def {1}:\n'.format(
398 indentStr, child.data(pythonSignatureRole))) 398 indentStr, child.data(pythonSignatureRole)))
399 slotsCode.append('{0}"""\n'.format(indentStr * 2)) 399 slotsCode.append('{0}"""\n'.format(indentStr * 2))
400 slotsCode.append('{0}Slot documentation goes here.\n'.format( 400 slotsCode.append('{0}Slot documentation goes here.\n'.format(

eric ide

mercurial