Index: Lib/lib-tk/Tkinter.py =================================================================== --- Lib/lib-tk/Tkinter.py (revision 73053) +++ Lib/lib-tk/Tkinter.py (working copy) @@ -2840,11 +2840,11 @@ """ Widget.__init__(self, master, 'text', cnf, kw) - def bbox(self, *args): + def bbox(self, index): """Return a tuple of (x,y,width,height) which gives the bounding - box of the visible part of the character at the index in ARGS.""" + box of the visible part of the character at the given index.""" return self._getints( - self.tk.call((self._w, 'bbox') + args)) or None + self.tk.call(self._w, 'bbox', index)) or None def tk_textSelectTo(self, index): self.tk.call('tk_textSelectTo', self._w, index) def tk_textBackspace(self): @@ -2861,8 +2861,9 @@ def debug(self, boolean=None): """Turn on the internal consistency checks of the B-Tree inside the text widget according to BOOLEAN.""" - return self.tk.getboolean(self.tk.call( - self._w, 'debug', boolean)) + ret = self.tk.call(self._w, 'debug', boolean) + if boolean is None: + return self.tk.getboolean(ret) def delete(self, index1, index2=None): """Delete the characters between INDEX1 and INDEX2 (not included).""" self.tk.call(self._w, 'delete', index1, index2) @@ -2945,19 +2946,19 @@ then. Generates an error when the redo stack is empty. Does nothing when the undo option is false. """ - return self.edit("redo") + self.edit("redo") def edit_reset(self): """Clears the undo and redo stacks """ - return self.edit("reset") + self.edit("reset") def edit_separator(self): """Inserts a separator (boundary) on the undo stack. Does nothing when the undo option is false """ - return self.edit("separator") + self.edit("separator") def edit_undo(self): """Undoes the last edit action @@ -2968,7 +2969,7 @@ an error when the undo stack is empty. Does nothing when the undo option is false """ - return self.edit("undo") + self.edit("undo") def get(self, index1, index2=None): """Return the text from INDEX1 to INDEX2 (not included)."""