eric6/Debugger/Config.py

changeset 6942
2602857055c5
parent 6645
ad476851d7e0
child 6978
720247f98e1f
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2002 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module defining the different Python types and their display strings.
8 """
9
10 from __future__ import unicode_literals
11
12 from PyQt5.QtCore import QT_TRANSLATE_NOOP
13
14 # Variables type definition
15 # Special case for Python 2: don't add 'instancemethod'. It's renamed to
16 # 'method' in DebugClientBase.py to be identical to Python 3
17 ConfigVarTypeDispStrings = {
18 '__': QT_TRANSLATE_NOOP('Variable Types', 'Hidden Attributes'),
19 'NoneType': QT_TRANSLATE_NOOP('Variable Types', 'None'),
20 'type': QT_TRANSLATE_NOOP('Variable Types', 'Type'),
21 'bool': QT_TRANSLATE_NOOP('Variable Types', 'Boolean'),
22 'int': QT_TRANSLATE_NOOP('Variable Types', 'Integer'),
23 'long': QT_TRANSLATE_NOOP('Variable Types', 'Long Integer'),
24 'float': QT_TRANSLATE_NOOP('Variable Types', 'Float'),
25 'complex': QT_TRANSLATE_NOOP('Variable Types', 'Complex'),
26 'str': QT_TRANSLATE_NOOP('Variable Types', 'String'),
27 'unicode': QT_TRANSLATE_NOOP('Variable Types', 'Unicode String'),
28 'tuple': QT_TRANSLATE_NOOP('Variable Types', 'Tuple'),
29 'list': QT_TRANSLATE_NOOP('Variable Types', 'List/Array'),
30 'dict': QT_TRANSLATE_NOOP('Variable Types', 'Dictionary/Hash/Map'),
31 'dict-proxy': QT_TRANSLATE_NOOP('Variable Types', 'Dictionary Proxy'),
32 'set': QT_TRANSLATE_NOOP('Variable Types', 'Set'),
33 'frozenset': QT_TRANSLATE_NOOP('Variable Types', 'Frozen Set'),
34 'file': QT_TRANSLATE_NOOP('Variable Types', 'File'),
35 'xrange': QT_TRANSLATE_NOOP('Variable Types', 'X Range'),
36 'slice': QT_TRANSLATE_NOOP('Variable Types', 'Slice'),
37 'buffer': QT_TRANSLATE_NOOP('Variable Types', 'Buffer'),
38 'class': QT_TRANSLATE_NOOP('Variable Types', 'Class'),
39 'instance': QT_TRANSLATE_NOOP('Variable Types', 'Class Instance'),
40 'method': QT_TRANSLATE_NOOP('Variable Types', 'Class Method'),
41 'property': QT_TRANSLATE_NOOP('Variable Types', 'Class Property'),
42 'generator': QT_TRANSLATE_NOOP('Variable Types', 'Generator'),
43 'function': QT_TRANSLATE_NOOP('Variable Types', 'Function'),
44 'builtin_function_or_method':
45 QT_TRANSLATE_NOOP('Variable Types', 'Builtin Function'),
46 'code': QT_TRANSLATE_NOOP('Variable Types', 'Code'),
47 'module': QT_TRANSLATE_NOOP('Variable Types', 'Module'),
48 'ellipsis': QT_TRANSLATE_NOOP('Variable Types', 'Ellipsis'),
49 'traceback': QT_TRANSLATE_NOOP('Variable Types', 'Traceback'),
50 'frame': QT_TRANSLATE_NOOP('Variable Types', 'Frame'),
51 'other': QT_TRANSLATE_NOOP('Variable Types', 'Other'),
52 }
53
54
55 ConfigVarTypeFilters = {
56 '__': 0,
57 'NoneType': 1,
58 'type': 2,
59 'bool': 3,
60 'int': 4,
61 'long': 5,
62 'float': 6,
63 'complex': 7,
64 'str': 8,
65 'unicode': 9,
66 'tuple': 10,
67 'list': 11,
68 'dict': 12,
69 'dict-proxy': 13,
70 'set': 14,
71 'file': 15,
72 'xrange': 16,
73 'slice': 17,
74 'buffer': 18,
75 'class': 19,
76 'instance': 20,
77 'method': 21,
78 'property': 22,
79 'generator': 23,
80 'function': 24,
81 'builtin_function_or_method': 25,
82 'code': 26,
83 'module': 27,
84 'ellipsis': 28,
85 'traceback': 29,
86 'frame': 30,
87 'other': 31,
88 'frozenset': 32,
89 }

eric ide

mercurial