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

Method compare

Lib/tkinter/__init__.py:3865–3869  ·  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

3863 self.tk.call(self._w, 'bbox', index)) or None
3864
3865 def compare(self, index1, op, index2):
3866 """Return whether between index INDEX1 and index INDEX2 the
3867 relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=."""
3868 return self.tk.getboolean(self.tk.call(
3869 self._w, 'compare', index1, op, index2))
3870
3871 def count(self, index1, index2, *options, return_ints=False): # new in Tk 8.5
3872 """Counts the number of relevant things between the two indices.

Callers

nothing calls this directly

Calls 2

getbooleanMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected