Answer the question
In order to leave comments, you need to log in
How to fix pysimplegui error?
I'm working on creating a graphical interface. I'm working with pysimplegui for the first time and I'm not completely sure about the correctness of the code, but it seems to have worked before. As far as I understand the essence of the error is that you cannot use the same element in different layouts. Here's the text of the error just in case: UserWarning: *** YOU ARE ATTEMPTING TO RESUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***.
Swears if you close the page, and then try to open it again.
Directly problematic section of code
if event == "Отмена":
window.close()
window = sg.Window("Меню", menu_admin)
wnd = "menu_admin"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question