MCPcopy Index your code
hub / github.com/python/cpython / flip

Method flip

Lib/idlelib/tree.py:145–151  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

143 child.deselecttree()
144
145 def flip(self, event=None):
146 if self.state == 'expanded':
147 self.collapse()
148 else:
149 self.expand()
150 self.item.OnDoubleClick()
151 return "break"
152
153 def expand(self, event=None):
154 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