mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #6181: Fixed minor bugs in tkinter.Listbox methods:
bbox(), curselection() and get().
This commit is contained in:
parent
90441e857d
commit
fc14ad9962
4 changed files with 60 additions and 29 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue