ProjectPyramid/PyramidDialog.py

changeset 3
76c45d31d462
parent 2
e691c51ab655
child 6
43d74d535785
equal deleted inserted replaced
2:e691c51ab655 3:76c45d31d462
32 msgSuccess = None, msgError = None, 32 msgSuccess = None, msgError = None,
33 parent = None): 33 parent = None):
34 """ 34 """
35 Constructor 35 Constructor
36 36
37 @param text text to be shown by the label (string or QString) 37 @param text text to be shown by the label (string)
38 @keyparam fixed flag indicating a fixed font should be used (boolean) 38 @keyparam fixed flag indicating a fixed font should be used (boolean)
39 @keyparam linewrap flag indicating to wrap long lines (boolean) 39 @keyparam linewrap flag indicating to wrap long lines (boolean)
40 @keyparam msgSuccess optional string to show upon successful execution 40 @keyparam msgSuccess optional string to show upon successful execution
41 (string or QString) 41 (string)
42 @keyparam msgError optional string to show upon unsuccessful execution 42 @keyparam msgError optional string to show upon unsuccessful execution
43 (string or QString) 43 (string)
44 @keyparam parent parent widget (QWidget) 44 @keyparam parent parent widget (QWidget)
45 """ 45 """
46 super().__init__(parent) 46 super().__init__(parent)
47 self.setupUi(self) 47 self.setupUi(self)
48 48
90 self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason) 90 self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason)
91 91
92 if self.argsLists: 92 if self.argsLists:
93 args = self.argsLists[0][:] 93 args = self.argsLists[0][:]
94 del self.argsLists[0] 94 del self.argsLists[0]
95 self.startProcess(args, self.workingDir) 95 self.startProcess(args[0], args[1:], self.workingDir)
96 96
97 def on_buttonBox_clicked(self, button): 97 def on_buttonBox_clicked(self, button):
98 """ 98 """
99 Private slot called by a button of the button box clicked. 99 Private slot called by a button of the button box clicked.
100 100
181 self.workingDir = workingDir 181 self.workingDir = workingDir
182 182
183 # start the first process 183 # start the first process
184 args = self.argsLists[0][:] 184 args = self.argsLists[0][:]
185 del self.argsLists[0] 185 del self.argsLists[0]
186 res = self.startProcess(args, self.workingDir) 186 res = self.startProcess(args[0], args[1:], self.workingDir)
187 if not res: 187 if not res:
188 self.argsLists = [] 188 self.argsLists = []
189 189
190 return res 190 return res
191 191

eric ide

mercurial