Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions 7 Lib/tkinter/test/test_tkinter/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,8 +1241,11 @@ def test_configure_title(self):

def test_configure_type(self):
widget = self.create()
self.checkEnumParam(widget, 'type',
'normal', 'tearoff', 'menubar')
self.checkEnumParam(
widget, 'type',
'normal', 'tearoff', 'menubar',
errmsg='bad type "{}": must be normal, tearoff, or menubar',
)

def test_entryconfigure(self):
m1 = self.create()
Expand Down
9 changes: 6 additions & 3 deletions 9 Lib/tkinter/test/test_ttk/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,13 @@ def checkImageParam(self, widget, name):
errmsg='image "spam" doesn\'t exist')

def test_configure_compound(self):
options = 'none text image center top bottom left right'.split()
errmsg = (
'bad compound "{}": must be'
f' {", ".join(options[:-1])}, or {options[-1]}'
)
widget = self.create()
self.checkEnumParam(widget, 'compound',
'none', 'text', 'image', 'center',
'top', 'bottom', 'left', 'right')
self.checkEnumParam(widget, 'compound', *options, errmsg=errmsg)

def test_configure_state(self):
widget = self.create()
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.