Dec-07-2021, 04:27 PM
(This post was last modified: Dec-07-2021, 04:27 PM by deanhystad.)
You can only use Tk() once in a program. This command initializes tkinter in addition to creating a window. In your msgPanel() function you should create a messagebox instead of using Tk().
https://docs.python.org/3/library/tkinte...gebox.html
An alternative is to create an additional Toplevel window using tkinter.Toplevel()
https://www.geeksforgeeks.org/python-tki...el-widget/
https://docs.python.org/3/library/tkinte...gebox.html
An alternative is to create an additional Toplevel window using tkinter.Toplevel()
https://www.geeksforgeeks.org/python-tki...el-widget/