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

Method mark_gravity

Lib/tkinter/__init__.py:4057–4061  ·  view source on GitHub ↗

Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT). Return the current value if None is given for DIRECTION.

(self, markName, direction=None)

Source from the content-addressed store, hash-verified

4055 self.tk.call((self._w, 'insert', index, chars) + args)
4056
4057 def mark_gravity(self, markName, direction=None):
4058 """Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT).
4059 Return the current value if None is given for DIRECTION."""
4060 return self.tk.call(
4061 (self._w, 'mark', 'gravity', markName, direction))
4062
4063 def mark_names(self):
4064 """Return all mark names."""

Callers 4

restart_subprocessMethod · 0.80
writeMethod · 0.80
mywriteMethod · 0.80
setUpMethod · 0.80

Calls 1

callMethod · 0.45

Tested by 1

setUpMethod · 0.64