eric6/Debugger/StartDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8176
31965986ecd1
parent 8257
28146736bbfc
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
77 @type list of str 77 @type list of str
78 @param configOverride dictionary containing the global config override 78 @param configOverride dictionary containing the global config override
79 data 79 data
80 @type dict 80 @type dict
81 """ 81 """
82 super(StartDialog, self).__init__(parent) 82 super().__init__(parent)
83 self.setModal(True) 83 self.setModal(True)
84 84
85 self.dialogType = dialogType 85 self.dialogType = dialogType
86 if dialogType == 0: 86 if dialogType == 0:
87 from .Ui_StartDebugDialog import Ui_StartDebugDialog 87 from .Ui_StartDebugDialog import Ui_StartDebugDialog
352 @return tuple containing the histories of command line arguments, 352 @return tuple containing the histories of command line arguments,
353 working directories, environment settings and no debug programs 353 working directories, environment settings and no debug programs
354 lists 354 lists
355 @rtype tuple of four list of str 355 @rtype tuple of four list of str
356 """ 356 """
357 if self.dialogType == 0: 357 noDebugHistory = (
358 noDebugHistory = [ 358 [
359 self.ui.multiprocessNoDebugCombo.itemText(index) 359 self.ui.multiprocessNoDebugCombo.itemText(index)
360 for index in range(self.ui.multiprocessNoDebugCombo.count()) 360 for index in range(self.ui.multiprocessNoDebugCombo.count())
361 ] 361 ]
362 else: 362 if self.dialogType == 0 else
363 noDebugHistory = None 363 None
364 )
364 return ( 365 return (
365 [self.ui.cmdlineCombo.itemText(index) for index in range( 366 [self.ui.cmdlineCombo.itemText(index) for index in range(
366 self.ui.cmdlineCombo.count())], 367 self.ui.cmdlineCombo.count())],
367 self.ui.workdirPicker.getPathItems(), 368 self.ui.workdirPicker.getPathItems(),
368 [self.ui.environmentCombo.itemText(index) for index in range( 369 [self.ui.environmentCombo.itemText(index) for index in range(

eric ide

mercurial