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

Method clear

Lib/idlelib/scrolledlist.py:42–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 self.frame.destroy()
41
42 def clear(self):
43 self.listbox.delete(0, "end")
44 self.empty = 1
45 self.listbox.insert("end", self.default)
46
47 def append(self, item):
48 if self.empty:

Callers 1

__init__Method · 0.95

Calls 2

deleteMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected