diff Lib/tkinter/__init__.py @ 86873:5bdbf2258563 3.3

Issue #6160: The bbox() method of tkinter.Spinbox now returns a tuple of integers instead of a string. Based on patch by Guilherme Polo.
author Serhiy Storchaka <storchaka@gmail.com>
date Sun, 03 Nov 2013 14:13:34 +0200
parents 7df61fa27f71
children 3f5e35b766ac 75d8b9136fa6
line wrap: on
line diff
--- a/Lib/tkinter/__init__.py	Sun Nov 03 11:58:02 2013 +0000
+++ b/Lib/tkinter/__init__.py	Sun Nov 03 14:13:34 2013 +0200
@@ -3511,7 +3511,7 @@
         bounding box may refer to a region outside the
         visible area of the window.
         """
-        return self.tk.call(self._w, 'bbox', index)
+        return self._getints(self.tk.call(self._w, 'bbox', index)) or None
 
     def delete(self, first, last=None):
         """Delete one or more elements of the spinbox.