src/eric7/Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py

branch
eric7
changeset 10437
2f70ca07f0af
parent 10315
4102a69604eb
child 10439
21c28b0f9e41
equal deleted inserted replaced
10436:f6881d10e995 10437:2f70ca07f0af
32 32
33 def __init__(self, cmdname, parent=None): 33 def __init__(self, cmdname, parent=None):
34 """ 34 """
35 Constructor 35 Constructor
36 36
37 @param cmdname name of the ericapi generator (string) 37 @param cmdname name of the ericapi generator
38 @param parent parent widget of this dialog (QWidget) 38 @type str
39 @param parent parent widget of this dialog
40 @type QWidget
39 """ 41 """
40 super().__init__(parent) 42 super().__init__(parent)
41 self.setupUi(self) 43 self.setupUi(self)
42 self.setWindowFlags(Qt.WindowType.Window) 44 self.setWindowFlags(Qt.WindowType.Window)
43 45
49 51
50 def start(self, args, fn): 52 def start(self, args, fn):
51 """ 53 """
52 Public slot to start the ericapi command. 54 Public slot to start the ericapi command.
53 55
54 @param args commandline arguments for ericapi program (list of strings) 56 @param args commandline arguments for ericapi program
57 @type list of str
55 @param fn filename or dirname to be processed by ericapi program 58 @param fn filename or dirname to be processed by ericapi program
56 (string) 59 @type str
57 @return flag indicating the successful start of the process (boolean) 60 @return flag indicating the successful start of the process
61 @rtype bool
58 """ 62 """
59 self.errorGroup.hide() 63 self.errorGroup.hide()
60 64
61 self.filename = fn 65 self.filename = fn
62 if os.path.isdir(self.filename): 66 if os.path.isdir(self.filename):
99 103
100 def on_buttonBox_clicked(self, button): 104 def on_buttonBox_clicked(self, button):
101 """ 105 """
102 Private slot called by a button of the button box clicked. 106 Private slot called by a button of the button box clicked.
103 107
104 @param button button that was clicked (QAbstractButton) 108 @param button button that was clicked
109 @type QAbstractButton
105 """ 110 """
106 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): 111 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close):
107 self.accept() 112 self.accept()
108 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): 113 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel):
109 self.__finish() 114 self.__finish()

eric ide

mercurial