eric6/Debugger/Config.py

Sat, 27 Feb 2021 12:08:23 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 27 Feb 2021 12:08:23 +0100
changeset 8138
169e65a6787c
parent 7923
91e843545d9a
child 8043
0acf98cd089a
permissions
-rw-r--r--

Shell: added functionality to show a prompt when the main client process has exited (e.g. a script ended).

0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2
7923
91e843545d9a Updated copyright for 2021.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 7862
diff changeset
3 # Copyright (c) 2002 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 #
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 Module defining the different Python types and their display strings.
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
10 from PyQt5.QtCore import QT_TRANSLATE_NOOP
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
11
7862
817ef8e0fa66 Debugger: changed the handling of variable type filters.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 7780
diff changeset
12 # Variable type definitions
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
13 ConfigVarTypeDispStrings = {
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
14 '__': QT_TRANSLATE_NOOP('Variable Types', 'Hidden Attributes'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
15 'NoneType': QT_TRANSLATE_NOOP('Variable Types', 'None'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
16 'type': QT_TRANSLATE_NOOP('Variable Types', 'Type'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
17 'bool': QT_TRANSLATE_NOOP('Variable Types', 'Boolean'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
18 'int': QT_TRANSLATE_NOOP('Variable Types', 'Integer'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
19 'long': QT_TRANSLATE_NOOP('Variable Types', 'Long Integer'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
20 'float': QT_TRANSLATE_NOOP('Variable Types', 'Float'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
21 'complex': QT_TRANSLATE_NOOP('Variable Types', 'Complex'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
22 'str': QT_TRANSLATE_NOOP('Variable Types', 'String'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
23 'tuple': QT_TRANSLATE_NOOP('Variable Types', 'Tuple'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
24 'list': QT_TRANSLATE_NOOP('Variable Types', 'List/Array'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
25 'dict': QT_TRANSLATE_NOOP('Variable Types', 'Dictionary/Hash/Map'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
26 'dict-proxy': QT_TRANSLATE_NOOP('Variable Types', 'Dictionary Proxy'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
27 'set': QT_TRANSLATE_NOOP('Variable Types', 'Set'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
28 'frozenset': QT_TRANSLATE_NOOP('Variable Types', 'Frozen Set'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
29 'file': QT_TRANSLATE_NOOP('Variable Types', 'File'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
30 'xrange': QT_TRANSLATE_NOOP('Variable Types', 'X Range'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
31 'slice': QT_TRANSLATE_NOOP('Variable Types', 'Slice'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
32 'buffer': QT_TRANSLATE_NOOP('Variable Types', 'Buffer'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
33 'class': QT_TRANSLATE_NOOP('Variable Types', 'Class'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
34 'instance': QT_TRANSLATE_NOOP('Variable Types', 'Class Instance'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
35 'method': QT_TRANSLATE_NOOP('Variable Types', 'Class Method'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
36 'property': QT_TRANSLATE_NOOP('Variable Types', 'Class Property'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
37 'generator': QT_TRANSLATE_NOOP('Variable Types', 'Generator'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
38 'function': QT_TRANSLATE_NOOP('Variable Types', 'Function'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
39 'builtin_function_or_method':
3032
927a2f8b3669 Fixed various coding style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2988
diff changeset
40 QT_TRANSLATE_NOOP('Variable Types', 'Builtin Function'),
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
41 'code': QT_TRANSLATE_NOOP('Variable Types', 'Code'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
42 'module': QT_TRANSLATE_NOOP('Variable Types', 'Module'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
43 'ellipsis': QT_TRANSLATE_NOOP('Variable Types', 'Ellipsis'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
44 'traceback': QT_TRANSLATE_NOOP('Variable Types', 'Traceback'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
45 'frame': QT_TRANSLATE_NOOP('Variable Types', 'Frame'),
6978
720247f98e1f Improved determination of expandable items including removing 'other' as selectable type.
T.Rzepka <Tobias.Rzepka@gmail.com>
parents: 6942
diff changeset
46 'bytes': QT_TRANSLATE_NOOP('Variable Types', 'Bytes'),
7862
817ef8e0fa66 Debugger: changed the handling of variable type filters.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 7780
diff changeset
47 "special_attributes": QT_TRANSLATE_NOOP(
817ef8e0fa66 Debugger: changed the handling of variable type filters.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 7780
diff changeset
48 'Variable Types', "Special Attributes"),
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
49 }

eric ide

mercurial