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

Method edit

tools/python-3.11.9-amd64/Lib/curses/textpad.py:177–188  ·  view source on GitHub ↗

Edit in the widget window and collect the results.

(self, validate=None)

Source from the content-addressed store, hash-verified

175 return result
176
177 def edit(self, validate=None):
178 "Edit in the widget window and collect the results."
179 while 1:
180 ch = self.win.getch()
181 if validate:
182 ch = validate(ch)
183 if not ch:
184 continue
185 if not self.do_command(ch):
186 break
187 self.win.refresh()
188 return self.gather()
189
190if __name__ == '__main__':
191 def test_editbox(stdscr):

Callers 1

test_editboxFunction · 0.45

Calls 4

do_commandMethod · 0.95
gatherMethod · 0.95
validateFunction · 0.50
refreshMethod · 0.45

Tested by 1

test_editboxFunction · 0.36