[issue45967] Tkinter.ttk.Treeview does not clear after opening and reopening another using same code block

2021-12-03 Thread Harold Meneley


Harold Meneley  added the comment:

Some times , I forget the program languages differences. Sorry. Thanks for
your time. Harold

On Fri, Dec 3, 2021, 12:48 PM Ned Deily  wrote:

>
> Change by Ned Deily :
>
>
> --
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45967] Tkinter.ttk.Treeview does not clear after opening and reopening another using same code block

2021-12-03 Thread Ned Deily


Change by Ned Deily :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45967] Tkinter.ttk.Treeview does not clear after opening and reopening another using same code block

2021-12-03 Thread E. Paine


E. Paine  added the comment:

This is because your code isn't clearing the Treeview, it's hiding it by 
setting the parent Frame's width and height to 0. When this parent Frame is 
reshown, because you want to put a new TreeView on it, the old one is still 
there.

The easiest way to solve this is to probably create `xtree` just below where 
you set-up the menu instead of in the function (since you're already calling 
`xtree.delete`, problem is it's currently being called on the empty tree you've 
just created).

In the future, for issues such as this, please try posting on Stack Overflow 
first before then raising it with us. Additionally, please post a minimal 
reproducible example, rather than your full code since it makes it much harder 
for us to get to the bottom of the problem. One final thing: you may wish to 
change your MariaDB password for security, since this was included in the file 
you uploaded.

--
nosy: +epaine

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45967] Tkinter.ttk.Treeview does not clear after opening and reopening another using same code block

2021-12-02 Thread Alex Waygood


Change by Alex Waygood :


--
nosy: +gpolo, serhiy.storchaka
title: treeview -> Tkinter.ttk.Treeview does not clear after opening and 
reopening another using same code block

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com