27 """ |
27 """ |
28 def __init__(self, caption, lastUsedVenvName, argvList, wdList, envList, |
28 def __init__(self, caption, lastUsedVenvName, argvList, wdList, envList, |
29 exceptions, |
29 exceptions, |
30 parent=None, dialogType=0, modfuncList=None, |
30 parent=None, dialogType=0, modfuncList=None, |
31 tracePython=False, autoClearShell=True, autoContinue=True, |
31 tracePython=False, autoClearShell=True, autoContinue=True, |
32 autoFork=False, forkChild=False): |
32 autoFork=False, forkChild=False, enableMultiprocess=False): |
33 """ |
33 """ |
34 Constructor |
34 Constructor |
35 |
35 |
36 @param caption the caption to be displayed |
36 @param caption the caption to be displayed |
37 @type str |
37 @type str |
54 <li>1 = start run dialog</li> |
54 <li>1 = start run dialog</li> |
55 <li>2 = start coverage dialog</li> |
55 <li>2 = start coverage dialog</li> |
56 <li>3 = start profile dialog</li> |
56 <li>3 = start profile dialog</li> |
57 </ul> |
57 </ul> |
58 @type int (0 to 3) |
58 @type int (0 to 3) |
59 @keyparam modfuncList history list of module functions |
59 @param modfuncList history list of module functions |
60 @type list of str |
60 @type list of str |
61 @keyparam tracePython flag indicating if the Python library should |
61 @param tracePython flag indicating if the Python library should |
62 be traced as well |
62 be traced as well |
63 @type bool |
63 @type bool |
64 @keyparam autoClearShell flag indicating, that the interpreter window |
64 @param autoClearShell flag indicating, that the interpreter window |
65 should be cleared automatically |
65 should be cleared automatically |
66 @type bool |
66 @type bool |
67 @keyparam autoContinue flag indicating, that the debugger should not |
67 @param autoContinue flag indicating, that the debugger should not |
68 stop at the first executable line |
68 stop at the first executable line |
69 @type bool |
69 @type bool |
70 @keyparam autoFork flag indicating the automatic fork mode |
70 @param autoFork flag indicating the automatic fork mode |
71 @type bool |
71 @type bool |
72 @keyparam forkChild flag indicating to debug the child after forking |
72 @param forkChild flag indicating to debug the child after forking |
|
73 @type bool |
|
74 @param enableMultiprocess flag indicating the support for multi process |
|
75 debugging |
73 @type bool |
76 @type bool |
74 """ |
77 """ |
75 super(StartDialog, self).__init__(parent) |
78 super(StartDialog, self).__init__(parent) |
76 self.setModal(True) |
79 self.setModal(True) |
77 |
80 |
130 self.ui.tracePythonCheckBox.setChecked(tracePython) |
133 self.ui.tracePythonCheckBox.setChecked(tracePython) |
131 self.ui.tracePythonCheckBox.show() |
134 self.ui.tracePythonCheckBox.show() |
132 self.ui.autoContinueCheckBox.setChecked(autoContinue) |
135 self.ui.autoContinueCheckBox.setChecked(autoContinue) |
133 self.ui.forkModeCheckBox.setChecked(autoFork) |
136 self.ui.forkModeCheckBox.setChecked(autoFork) |
134 self.ui.forkChildCheckBox.setChecked(forkChild) |
137 self.ui.forkChildCheckBox.setChecked(forkChild) |
|
138 self.ui.multiprocessEnableCheckBox.setChecked(enableMultiprocess) |
135 |
139 |
136 if dialogType == 1: # start run dialog |
140 if dialogType == 1: # start run dialog |
137 self.ui.forkModeCheckBox.setChecked(autoFork) |
141 self.ui.forkModeCheckBox.setChecked(autoFork) |
138 self.ui.forkChildCheckBox.setChecked(forkChild) |
142 self.ui.forkChildCheckBox.setChecked(forkChild) |
139 |
143 |
189 """ |
193 """ |
190 if self.dialogType == 0: |
194 if self.dialogType == 0: |
191 return (self.ui.tracePythonCheckBox.isChecked(), |
195 return (self.ui.tracePythonCheckBox.isChecked(), |
192 self.ui.autoContinueCheckBox.isChecked(), |
196 self.ui.autoContinueCheckBox.isChecked(), |
193 self.ui.forkModeCheckBox.isChecked(), |
197 self.ui.forkModeCheckBox.isChecked(), |
194 self.ui.forkChildCheckBox.isChecked()) |
198 self.ui.forkChildCheckBox.isChecked(), |
|
199 self.ui.multiprocessEnableCheckBox.isChecked()) |
195 else: |
200 else: |
196 return (False, False, False, False) |
201 return (False, False, False, False, False) |
197 |
202 |
198 def getRunData(self): |
203 def getRunData(self): |
199 """ |
204 """ |
200 Public method to retrieve the debug related data entered into this |
205 Public method to retrieve the debug related data entered into this |
201 dialog. |
206 dialog. |