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

Method replace

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:3872–3878  ·  view source on GitHub ↗

Replaces the range of characters between index1 and index2 with the given characters and tags specified by args. See the method insert for some more information about args, and the method delete for information about the indices.

(self, index1, index2, chars, *args)

Source from the content-addressed store, hash-verified

3870 return self.tk.splitlist(self.tk.call(self._w, 'peer', 'names'))
3871
3872 def replace(self, index1, index2, chars, *args): # new in Tk 8.5
3873 """Replaces the range of characters between index1 and index2 with
3874 the given characters and tags specified by args.
3875
3876 See the method insert for some more information about args, and the
3877 method delete for information about the indices."""
3878 self.tk.call(self._w, 'replace', index1, index2, chars, *args)
3879
3880 def scan_mark(self, x, y):
3881 """Remember the current X, Y coordinates."""

Callers 2

_stringifyFunction · 0.45
loadsFunction · 0.45

Calls 1

callMethod · 0.80

Tested by

no test coverage detected