MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / flip

Method flip

tools/python-3.11.9-amd64/Lib/idlelib/tree.py:143–149  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

141 child.deselecttree()
142
143 def flip(self, event=None):
144 if self.state == 'expanded':
145 self.collapse()
146 else:
147 self.expand()
148 self.item.OnDoubleClick()
149 return "break"
150
151 def expand(self, event=None):
152 if not self.item._IsExpandable():

Callers

nothing calls this directly

Calls 3

collapseMethod · 0.95
expandMethod · 0.95
OnDoubleClickMethod · 0.45

Tested by

no test coverage detected