Missing window frame after running GFX app more than once
This REPL demonstrates an issue with X-Window graphics output. It's a Python REPL running a Tkinter PySimpleGUI app that displays a text label and a quit button.
When I run the app more than once in a fresh session, from the second time onwards the window's frame is missing and the X desktop background turns black. To reproduce:
- in the REPL, click
Run
- in the app, click
Exit
- in the REPL, click
Run
I'm using the latest version of PySimpleGUI, 4.33.0, updated a couple of days ago. And I have a Chromebox with Chrome OS Stable 87.0.4280.109.
Before filing a bug report, I'm trying to figure whether the issue is at Repl.it's or at PySimpleGUI's end. Any insights or suggestions?
Update 1
When running the same code in a Polygott REPL, the window border doesn't disappear and the desktop background doesn't turn black no matter how many times it's run.
So it's likely a Repl.it bug, specifically of the default Python REPL, and I've filed a Repl.it bug report.
Update 2
Never mind, the issue occurs also in Polygott REPLs. After the first run the window frame disappears and the desktop background turns black.
Update 3
The issue is now fixed, likely as a result of the work on improving native graphics.
I can't seem to get even the repl started, PySimpleGUI isn't a module
@DynamicSquid I don't know why that happens to you, it works for me.
Try this: fork the REPL and add the requirements.txt
file containing pysimplegui
.
@PaoloAmoroso I forked the repl and I was able to reproduce your error. I think it might be a bug
@DynamicSquid Thanks. Do you think it's a Repl.it bug or a PySimpleGUI bug? I'm leaning on the former as the desktop background turns black and PySimpleGUI can't likely change that.
@DynamicSquid When running the same code in a Polygott REPL, the window border doesn't disappear and the desktop background doesn't turn black no matter how many times it's run.
So it's likely a Repl.it bug, specifically of the default Python REPL, and I've filed a Repl.it bug report.
@DynamicSquid The module not found error was fixed.
i'm gettinga module not found error. Try
pip install
it, and maybe it should work@RYANTADIPARTHI If the attached REPL doesn't run, try creating a new Python REPL from scratch and pasting the code there.
@RYANTADIPARTHI The module not found error was fixed.
@PaoloAmoroso ok, the code seems to be working.