[New-bugs-announce] [issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

Igor Yakovchenko report at bugs.python.org
Sun Mar 18 05:09:10 EDT 2018


New submission from Igor Yakovchenko <truestarecat at gmail.com>:

ttk.Treeview.insert(... iid=None, ...) method has a check:
        if iid:
            res = self.tk.call(self._w, "insert", parent, index,
                "-id", iid, *opts)
        else:
            res = self.tk.call(self._w, "insert", parent, index, *opts)

Documentation says that "If iid is specified, it is used as the item identifier", but as you can see from code, iid is used only if it's "True". It means that you cannot use iids like 0, 0.0 etc.

----------
components: Tkinter
messages: 314032
nosy: gpolo, serhiy.storchaka, truestarecat
priority: normal
severity: normal
status: open
title: ttk.Treeview.insert() does not allow to insert item with "False" iid
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33096>
_______________________________________


More information about the New-bugs-announce mailing list