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

Method compare

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

Return whether between index INDEX1 and index INDEX2 the relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=.

(self, index1, op, index2)

Source from the content-addressed store, hash-verified

3652 self.tk.call(self._w, 'bbox', index)) or None
3653
3654 def compare(self, index1, op, index2):
3655 """Return whether between index INDEX1 and index INDEX2 the
3656 relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=."""
3657 return self.tk.getboolean(self.tk.call(
3658 self._w, 'compare', index1, op, index2))
3659
3660 def count(self, index1, index2, *args): # new in Tk 8.5
3661 """Counts the number of relevant things between the two indices.

Callers

nothing calls this directly

Calls 2

callMethod · 0.80
getbooleanMethod · 0.45

Tested by

no test coverage detected