mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-33096: Fix ttk.Treeview.insert. (GH-6228)
Allow ttk.Treeview.insert to insert iid that has a false boolean value.
Note iid=0 and iid=False would be same.
(cherry picked from commit 3ab44c0783
)
Co-authored-by: Garvit Khatri <garvitdelhi@gmail.com>
This commit is contained in:
parent
5fc6fc85c4
commit
a7b1b847f6
3 changed files with 14 additions and 1 deletions
|
@ -1363,7 +1363,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
|
|||
already exist in the tree. Otherwise, a new unique identifier
|
||||
is generated."""
|
||||
opts = _format_optdict(kw)
|
||||
if iid:
|
||||
if iid is not None:
|
||||
res = self.tk.call(self._w, "insert", parent, index,
|
||||
"-id", iid, *opts)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue