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

Method new_callback

Lib/idlelib/editor.py:331–334  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

329 self.width = pixel_width // zero_char_width
330
331 def new_callback(self, event):
332 dirname, basename = self.io.defaultfilename()
333 self.flist.new(dirname)
334 return "break"
335
336 def home_callback(self, event):
337 if (event.state & 4) != 0 and event.keysym == "Home":

Callers

nothing calls this directly

Calls 2

defaultfilenameMethod · 0.80
newMethod · 0.45

Tested by

no test coverage detected