eric6/DebugClients/Python/DebugVariables.py

branch
Variables Viewer
changeset 6978
720247f98e1f
parent 6969
fd7af2312383
child 6988
87ad87ef1910
equal deleted inserted replaced
6972:bb4d5692f966 6978:720247f98e1f
7 Module implementing classes and functions to dump variable contents. 7 Module implementing classes and functions to dump variable contents.
8 """ 8 """
9 9
10 import sys 10 import sys
11 11
12 from DebugConfig import ConfigQtNames, BatchSize 12 from DebugConfig import ConfigQtNames, ConfigKnownQtTypes, BatchSize
13 13
14 # 14 #
15 # This code was inspired by pydevd. 15 # This code was inspired by pydevd.
16 # 16 #
17 17
655 typeName = typeObject.__name__ 655 typeName = typeObject.__name__
656 # Between PyQt and PySide the returned type is different (class vs. type) 656 # Between PyQt and PySide the returned type is different (class vs. type)
657 typeStr = str(typeObject).split(' ', 1)[-1] 657 typeStr = str(typeObject).split(' ', 1)[-1]
658 typeStr = typeStr[1:-2] 658 typeStr = typeStr[1:-2]
659 659
660 if typeStr.startswith(ConfigQtNames): 660 if (typeStr.startswith(ConfigQtNames) and
661 typeStr.endswith(ConfigKnownQtTypes)):
661 resolver = None 662 resolver = None
662 else: 663 else:
663 if _TypeMap is None: 664 if _TypeMap is None:
664 _initTypeMap() 665 _initTypeMap()
665 666

eric ide

mercurial