1427 while i < len(var): |
1427 while i < len(var): |
1428 if len(dict): |
1428 if len(dict): |
1429 udict = dict |
1429 udict = dict |
1430 ndict = {} |
1430 ndict = {} |
1431 # this has to be in line with VariablesViewer.indicators |
1431 # this has to be in line with VariablesViewer.indicators |
1432 if var[i][-2:] in ["[]", "()", "{}"]: |
1432 if var[i][-2:] in ["[]", "()", "{}"]: # __IGNORE_WARNING__ |
1433 if i + 1 == len(var): |
1433 if i + 1 == len(var): |
1434 if var[i][:-2] == '...': |
1434 if var[i][:-2] == '...': |
1435 dictkeys = [var[i - 1]] |
1435 dictkeys = [var[i - 1]] |
1436 else: |
1436 else: |
1437 dictkeys = [var[i][:-2]] |
1437 dictkeys = [var[i][:-2]] |
1565 elif ("sipThis" in dict.keys() and len(dict) == 1) or \ |
1565 elif ("sipThis" in dict.keys() and len(dict) == 1) or \ |
1566 (len(dict) == 0 and len(udict) > 0): |
1566 (len(dict) == 0 and len(udict) > 0): |
1567 if access: |
1567 if access: |
1568 exec 'qvar = udict%s' % access |
1568 exec 'qvar = udict%s' % access |
1569 # this has to be in line with VariablesViewer.indicators |
1569 # this has to be in line with VariablesViewer.indicators |
1570 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: |
1570 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: # __IGNORE_WARNING__ |
1571 exec 'qvar = udict["%s"][%s]' % (rvar[0][:-2], rvar[1]) |
1571 exec 'qvar = udict["%s"][%s]' % (rvar[0][:-2], rvar[1]) |
1572 else: |
1572 else: |
1573 qvar = udict[var[-1]] |
1573 qvar = udict[var[-1]] |
1574 qvtype = ("%s" % type(qvar))[1:-1].split()[1][1:-1] |
1574 qvtype = ("%s" % type(qvar))[1:-1].split()[1][1:-1] |
1575 if qvtype.startswith(("PyQt4", "PyQt5")): |
1575 if qvtype.startswith(("PyQt4", "PyQt5")): |
1580 qtVariable = False |
1580 qtVariable = False |
1581 if len(dict) == 0 and len(udict) > 0: |
1581 if len(dict) == 0 and len(udict) > 0: |
1582 if access: |
1582 if access: |
1583 exec 'qvar = udict%s' % access |
1583 exec 'qvar = udict%s' % access |
1584 # this has to be in line with VariablesViewer.indicators |
1584 # this has to be in line with VariablesViewer.indicators |
1585 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: |
1585 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: # __IGNORE_WARNING__ |
1586 exec 'qvar = udict["%s"][%s]' % (rvar[0][:-2], rvar[1]) |
1586 exec 'qvar = udict["%s"][%s]' % (rvar[0][:-2], rvar[1]) |
1587 else: |
1587 else: |
1588 qvar = udict[var[-1]] |
1588 qvar = udict[var[-1]] |
1589 qvtype = ("%s" % type(qvar))[1:-1].split()[1][1:-1] |
1589 qvtype = ("%s" % type(qvar))[1:-1].split()[1][1:-1] |
1590 if qvtype.startswith(("PyQt4", "PyQt5")): |
1590 if qvtype.startswith(("PyQt4", "PyQt5")): |