Ask coding questions

← Back to all posts
Missing window frame after running GFX app more than once
h
PaoloAmoroso (185)

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:

  1. in the REPL, click Run
  2. in the app, click Exit
  3. 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.

Comments
hotnewtop
RYANTADIPARTHI (5711)

i'm gettinga module not found error. Try pip install it, and maybe it should work

PaoloAmoroso (185)

@RYANTADIPARTHI If the attached REPL doesn't run, try creating a new Python REPL from scratch and pasting the code there.

RYANTADIPARTHI (5711)

@PaoloAmoroso ok, the code seems to be working.

DynamicSquid (4602)

I can't seem to get even the repl started, PySimpleGUI isn't a module

PaoloAmoroso (185)

@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.

DynamicSquid (4602)

@PaoloAmoroso I forked the repl and I was able to reproduce your error. I think it might be a bug

PaoloAmoroso (185)

@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.

PaoloAmoroso (185)

@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.

PaoloAmoroso (185)

@DynamicSquid The module not found error was fixed.