10000 bpo-33096 Modify ttk.Treeview.insert by plusminushalf · Pull Request #6228 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-33096 Modify ttk.Treeview.insert #6228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 26, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix entry insertion, inserting item to the end
  • Loading branch information
plusminushalf committed Mar 25, 2018
commit 6303d8f9d5d19270db9fa54a09c565d2198645ba
4 changes: 2 additions & 2 deletions Lib/tkinter/test/test_ttk/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1668,9 +1668,9 @@ def test_insert_item(self):
itemid = self.tv.insert('', 'end', 0.0)
self.assertEqual(itemid, '0.0')
# this is because False is resolveds to 0 and element with 0 id is already present
self.assertRaises(tkinter.TclError, self.tv.insert, '', '',
self.assertRaises(tkinter.TclError, self.tv.insert, '', 'end',
False)
self.assertRaises(tkinter.TclError, self.tv.insert, '', '',
self.assertRaises(tkinter.TclError, self.tv.insert, '', 'end',
'')


Expand Down
0