eric6/Debugger/DebugUI.py

changeset 8257
28146736bbfc
parent 8243
cc717c2ae956
child 8265
0090cfa83159
equal deleted inserted replaced
8256:26a8b92aeabd 8257:28146736bbfc
1685 self.__resetUI() 1685 self.__resetUI()
1686 doNotStart = False 1686 doNotStart = False
1687 1687
1688 # Get the command line arguments, the working directory and the 1688 # Get the command line arguments, the working directory and the
1689 # exception reporting flag. 1689 # exception reporting flag.
1690 if runProject: 1690 cap = (
1691 cap = self.tr("Coverage of Project") 1691 self.tr("Coverage of Project")
1692 else: 1692 if runProject else
1693 cap = self.tr("Coverage of Script") 1693 self.tr("Coverage of Script")
1694 )
1694 dlg = StartDialog( 1695 dlg = StartDialog(
1695 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory, 1696 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
1696 self.envHistory, self.exceptions, self.ui, 2, 1697 self.envHistory, self.exceptions, self.ui, 2,
1697 autoClearShell=self.autoClearShell, 1698 autoClearShell=self.autoClearShell,
1698 configOverride=self.overrideGlobalConfig) 1699 configOverride=self.overrideGlobalConfig)
1829 self.__resetUI() 1830 self.__resetUI()
1830 doNotStart = False 1831 doNotStart = False
1831 1832
1832 # Get the command line arguments, the working directory and the 1833 # Get the command line arguments, the working directory and the
1833 # exception reporting flag. 1834 # exception reporting flag.
1834 if runProject: 1835 cap = (
1835 cap = self.tr("Profile of Project") 1836 self.tr("Profile of Project")
1836 else: 1837 if runProject else
1837 cap = self.tr("Profile of Script") 1838 self.tr("Profile of Script")
1839 )
1838 dlg = StartDialog( 1840 dlg = StartDialog(
1839 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory, 1841 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
1840 self.envHistory, self.exceptions, self.ui, 3, 1842 self.envHistory, self.exceptions, self.ui, 3,
1841 autoClearShell=self.autoClearShell, 1843 autoClearShell=self.autoClearShell,
1842 configOverride=self.overrideGlobalConfig) 1844 configOverride=self.overrideGlobalConfig)
1973 self.__resetUI() 1975 self.__resetUI()
1974 doNotStart = False 1976 doNotStart = False
1975 1977
1976 # Get the command line arguments, the working directory and the 1978 # Get the command line arguments, the working directory and the
1977 # exception reporting flag. 1979 # exception reporting flag.
1978 cap = (self.tr("Run Project") if runProject 1980 cap = (
1979 else self.tr("Run Script")) 1981 self.tr("Run Project")
1982 if runProject else
1983 self.tr("Run Script")
1984 )
1980 dlg = StartDialog( 1985 dlg = StartDialog(
1981 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory, 1986 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
1982 self.envHistory, self.exceptions, self.ui, 1, 1987 self.envHistory, self.exceptions, self.ui, 1,
1983 autoClearShell=self.autoClearShell, 1988 autoClearShell=self.autoClearShell,
1984 configOverride=self.overrideGlobalConfig) 1989 configOverride=self.overrideGlobalConfig)
2111 self.__resetUI() 2116 self.__resetUI()
2112 doNotStart = False 2117 doNotStart = False
2113 2118
2114 # Get the command line arguments, the working directory and the 2119 # Get the command line arguments, the working directory and the
2115 # exception reporting flag. 2120 # exception reporting flag.
2116 cap = (self.tr("Debug Project") if debugProject 2121 cap = (
2117 else self.tr("Debug Script")) 2122 self.tr("Debug Project")
2123 if debugProject else
2124 self.tr("Debug Script")
2125 )
2118 dlg = StartDialog( 2126 dlg = StartDialog(
2119 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory, 2127 cap, self.lastUsedVenvName, self.argvHistory, self.wdHistory,
2120 self.envHistory, self.exceptions, self.ui, 0, 2128 self.envHistory, self.exceptions, self.ui, 0,
2121 tracePython=self.tracePython, autoClearShell=self.autoClearShell, 2129 tracePython=self.tracePython, autoClearShell=self.autoClearShell,
2122 autoContinue=self.autoContinue, 2130 autoContinue=self.autoContinue,

eric ide

mercurial