eric6/Debugger/Config.py

Sun, 02 Feb 2020 11:04:32 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 02 Feb 2020 11:04:32 +0100
changeset 7380
c99320e859ca
parent 7360
9190402e4505
child 7639
422fd05e9c91
permissions
-rw-r--r--

Fixed an issue related to showing the application name in the menu bar of Gnome desktop under Wayland.

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
7360
9190402e4505 Updated copyright for 2020.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 7229
diff changeset
3 # Copyright (c) 2002 - 2020 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
2525
8b507a9a2d40 Script changes: Future import added, super calls modified and unicode behavior for str.
T.Rzepka <Tobias.Rzepka@gmail.com>
parents: 2302
diff changeset
10
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
11 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
12
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
13 # Variables type definition
5278
efd21f457e06 Fix the variable filter for Python 3.
T.Rzepka <Tobias.Rzepka@gmail.com>
parents: 5270
diff changeset
14 # Special case for Python 2: don't add 'instancemethod'. It's renamed to
efd21f457e06 Fix the variable filter for Python 3.
T.Rzepka <Tobias.Rzepka@gmail.com>
parents: 5270
diff changeset
15 # 'method' in DebugClientBase.py to be identical to Python 3
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
16 ConfigVarTypeDispStrings = {
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
17 '__': 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
18 '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
19 '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
20 '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
21 '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
22 '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
23 '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
24 '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
25 '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
26 'unicode': QT_TRANSLATE_NOOP('Variable Types', 'Unicode String'),
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
27 '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
28 '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
29 '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
30 '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
31 '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
32 '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
33 '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
34 '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
35 '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
36 '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
37 '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
38 '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
39 '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
40 '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
41 '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
42 '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
43 'builtin_function_or_method':
3032
927a2f8b3669 Fixed various coding style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2988
diff changeset
44 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
45 '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
46 '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
47 '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
48 '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
49 '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
50 'bytes': QT_TRANSLATE_NOOP('Variable Types', 'Bytes'),
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
51 }
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
52
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
53
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
54 ConfigVarTypeFilters = {
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
55 '__': 0,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
56 'NoneType': 1,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
57 'type': 2,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
58 'bool': 3,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
59 'int': 4,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
60 'long': 5,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
61 'float': 6,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
62 'complex': 7,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
63 'str': 8,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
64 'unicode': 9,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
65 'tuple': 10,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
66 'list': 11,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
67 'dict': 12,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
68 'dict-proxy': 13,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
69 'set': 14,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
70 'file': 15,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
71 'xrange': 16,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
72 'slice': 17,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
73 'buffer': 18,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
74 'class': 19,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
75 'instance': 20,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
76 'method': 21,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
77 'property': 22,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
78 'generator': 23,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
79 'function': 24,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
80 'builtin_function_or_method': 25,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
81 'code': 26,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
82 'module': 27,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
83 'ellipsis': 28,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
84 'traceback': 29,
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
85 'frame': 30,
6978
720247f98e1f Improved determination of expandable items including removing 'other' as selectable type.
T.Rzepka <Tobias.Rzepka@gmail.com>
parents: 6942
diff changeset
86 'other': 31, # Not used anymore but keep to avoid reassignment
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
87 'frozenset': 32,
6978
720247f98e1f Improved determination of expandable items including removing 'other' as selectable type.
T.Rzepka <Tobias.Rzepka@gmail.com>
parents: 6942
diff changeset
88 'bytes': 33,
5171
f1e9eebd5469 Continued improving the variable dumping of the debugger backends.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4631
diff changeset
89 }

eric ide

mercurial