Issue #6181: Fixed minor bugs in tkinter.Listbox methods:

bbox(), curselection() and get().
This commit is contained in:
Serhiy Storchaka 2014-06-02 21:31:07 +03:00
parent 90441e857d
commit fc14ad9962
4 changed files with 60 additions and 29 deletions

View file

@ -202,6 +202,16 @@ class AbstractWidgetTest:
def checkVariableParam(self, widget, name, var):
self.checkParam(widget, name, var, conv=str)
def assertIsBoundingBox(self, bbox):
self.assertIsNotNone(bbox)
self.assertIsInstance(bbox, tuple)
if len(bbox) != 4:
self.fail('Invalid bounding box: %r' % (bbox,))
for item in bbox:
if not isinstance(item, int):
self.fail('Invalid bounding box: %r' % (bbox,))
break
class StandardOptionsTests:
STANDARD_OPTIONS = (