When I tried to reduce the grid size, I got the message "Rows/columns will be deleted from right/top. Continue?" Whether I clicked OK or Cancel, the viewer crashed and I got the following error message:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 15 (X_QueryTree)
Resource id in failed request: 0x200141
Serial number of failed request: 37632
Current serial number in output stream: 37632
I solved this problem in the following way from
gui_master = Tk()
gui_master.title('EvoGym Design Interface GUI')
main_env = env.Env()
main_viewer = viewer.Viewer('EvoGym Design Interface')
gui_viewer = gui.GUI(gui_master, main_viewer.window_data)
to
main_env = env.Env()
main_viewer = viewer.Viewer('EvoGym Design Interface')
gui_master = Tk()
gui_master.title('EvoGym Design Interface GUI')
gui_viewer = gui.GUI(gui_master, main_viewer.window_data
In viewer.py, glfw.init() needed to be in before Tk().
I used the following link as a reference:
https://stackoverflow.com/questions/71649848/badwindow-crash-in-tkinter-after-calling-glfw-init
When I tried to reduce the grid size, I got the message "Rows/columns will be deleted from right/top. Continue?" Whether I clicked OK or Cancel, the viewer crashed and I got the following error message:
I solved this problem in the following way from
to
In viewer.py, glfw.init() needed to be in before Tk().
I used the following link as a reference:
https://stackoverflow.com/questions/71649848/badwindow-crash-in-tkinter-after-calling-glfw-init