MCPcopy Index your code
hub / github.com/bpython/bpython / make_readonly

Method make_readonly

bpython/urwid.py:327–334  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

325 edit_pos = property(get_edit_pos, set_edit_pos)
326
327 def make_readonly(self):
328 self._bpy_selectable = False
329 # This is necessary to prevent the listbox we are in getting
330 # fresh cursor coords of None from get_cursor_coords
331 # immediately after we go readonly and then getting a cached
332 # canvas that still has the cursor set. It spots that
333 # inconsistency and raises.
334 self._invalidate()
335
336 def set_edit_markup(self, markup):
337 """Call this when markup changes but the underlying text does not.

Callers 2

keyboard_interruptMethod · 0.80
handle_inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected