src/eric7/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py

branch
eric7-maintenance
changeset 10460
3b34efa2857c
parent 9654
7328efba128b
parent 10439
21c28b0f9e41
child 11118
967a88a16a21
equal deleted inserted replaced
10366:411df92e881f 10460:3b34efa2857c
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2003 - 2023 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2003 - 2024 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the input dialog wizard dialog. 7 Module implementing the input dialog wizard dialog.
8 """ 8 """
26 26
27 def __init__(self, parent=None): 27 def __init__(self, parent=None):
28 """ 28 """
29 Constructor 29 Constructor
30 30
31 @param parent parent widget (QWidget) 31 @param parent parent widget
32 @type QWidget
32 """ 33 """
33 super().__init__(parent) 34 super().__init__(parent)
34 self.setupUi(self) 35 self.setupUi(self)
35 36
36 # set the validators for the double line edits 37 # set the validators for the double line edits
87 88
88 def on_buttonBox_clicked(self, button): 89 def on_buttonBox_clicked(self, button):
89 """ 90 """
90 Private slot called by a button of the button box clicked. 91 Private slot called by a button of the button box clicked.
91 92
92 @param button button that was clicked (QAbstractButton) 93 @param button button that was clicked
94 @type QAbstractButton
93 """ 95 """
94 if button == self.bTest: 96 if button == self.bTest:
95 self.on_bTest_clicked() 97 self.on_bTest_clicked()
96 98
97 @pyqtSlot() 99 @pyqtSlot()
155 157
156 def getCode(self, indLevel, indString): 158 def getCode(self, indLevel, indString):
157 """ 159 """
158 Public method to get the source code for Qt6. 160 Public method to get the source code for Qt6.
159 161
160 @param indLevel indentation level (int) 162 @param indLevel indentation level
161 @param indString string used for indentation (space or tab) (string) 163 @type int
162 @return generated code (string) 164 @param indString string used for indentation (space or tab)
165 @type str
166 @return generated code
167 @rtype str
163 """ 168 """
164 # calculate our indentation level and the indentation string 169 # calculate our indentation level and the indentation string
165 il = indLevel + 1 170 il = indLevel + 1
166 istring = il * indString 171 istring = il * indString
167 estring = os.linesep + indLevel * indString 172 estring = os.linesep + indLevel * indString

eric ide

mercurial