[Python-Dev] ttk.Treeview.insert() does not allow to insert item with iid=0

2018-03-16 Thread Игорь Яковченко
Hello, I found a possible bug with ttk.Treeview widget. I'm working on program that uses tkinter UI. I use ttk.Treeview to display some objects and I want to use integer iid of items. For example, I insert a row with treeview.insert(... iid=0, ...). But I encountered a problem when I try to get th

Re: [Python-Dev] ttk.Treeview.insert() does not allow to insert item with iid=0

2018-03-16 Thread Terry Reedy
On 3/16/2018 6:54 AM, Игорь Яковченко wrote: This might fit python-list better, and may become a bugs.python.org issue, but I will answer now, having just investigated. I found a possible bug with ttk.Treeview widget. See below. I'm working on program that uses tkinter UI. I use ttk.Treevi

Re: [Python-Dev] ttk.Treeview.insert() does not allow to insert item with iid=0

2018-03-16 Thread MRAB
On 2018-03-16 20:22, Terry Reedy wrote: On 3/16/2018 6:54 AM, Игорь Яковченко wrote: [snip] There is no item with such iid. This item has autogenerated iid just like it's not specified. I investigated problem and found that in ttk.py, Treeview.insert(... iid=None, ...) in method's body has a

Re: [Python-Dev] ttk.Treeview.insert() does not allow to insert item with iid=0

2018-03-20 Thread Chris Barker
On Fri, Mar 16, 2018 at 10:54 AM, Игорь Яковченко wrote: > I investigated problem and found that in ttk.py, Treeview.insert(... > iid=None, ...) in method's body has a check: > if iid: > res = self.tk.call(self._w, "insert", parent, index, > "-id", iid, *opts)

Re: [Python-Dev] ttk.Treeview.insert() does not allow to insert item with iid=0

2018-03-23 Thread Igor Yakovchenko
I had opened a tracker issue . -- Igor Yakovchenko Без вирусов. www.avast.ru