MCPcopy Index your code
hub / github.com/PyQt5/PyQt / keys

Method keys

Demo/Lib/qpropmapper.py:37–56  ·  view source on GitHub ↗
(self, dotted: bool = False)

Source from the content-addressed store, hash-verified

35
36class DictBox(Box):
37 def keys(self, dotted: bool = False):
38 if not dotted:
39 return super().keys()
40
41 if not self._box_config["box_dots"]:
42 raise Exception(
43 "Cannot return dotted keys as this Box does not have `box_dots` enabled"
44 )
45
46 keys = set()
47 for key, value in self.items():
48 added = False
49 if isinstance(key, str):
50 if isinstance(value, Box):
51 for sub_key in value.keys(dotted=True):
52 keys.add(f"{key}.{sub_key}")
53 added = True
54 if not added:
55 keys.add(key)
56 return sorted(keys, key=lambda x: str(x))
57
58
59class QPropertyMapper(QObject):

Callers 9

QWebChannelFunction · 0.80
QObjectFunction · 0.80
tickStringsMethod · 0.80
testMethod · 0.80
testMethod · 0.80
html2canvas.min.jsFile · 0.80
html2canvas.min.jsFile · 0.80
_initItemsMethod · 0.80
changeTabMethod · 0.80

Calls

no outgoing calls

Tested by 1

testMethod · 0.64