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

Method __init__

Lib/curses/textpad.py:43–49  ·  view source on GitHub ↗
(self, win, insert_mode=False)

Source from the content-addressed store, hash-verified

41 KEY_BACKSPACE = Ctrl-h
42 """
43 def __init__(self, win, insert_mode=False):
44 self.win = win
45 self.insert_mode = insert_mode
46 self._update_max_yx()
47 self.stripspaces = 1
48 self.lastcmd = None
49 win.keypad(1)
50
51 def _update_max_yx(self):
52 maxy, maxx = self.win.getmaxyx()

Callers

nothing calls this directly

Calls 1

_update_max_yxMethod · 0.95

Tested by

no test coverage detected