Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Create function PySimpleGUI.KillLinux() using code found in window.Disable() (freezes entire environment) #1485

Open
klieret opened this issue May 28, 2019 · 2 comments

Comments

@klieret
Copy link

@klieret klieret commented May 28, 2019

Type of Issues (Enhancement, Error, Bug, Question)

Bug:

  1. Initialize Window
  2. Show it (window.Read())
  3. Run window.Disable()
  4. The whole desktop environment freezes, nothing is clickable anymore
  5. Change to tty terminal and kill application
  6. Things are normal again

Operating System

Ubuntu 16.04 LTS 64 bit

Python version

Python 3.5.2

PySimpleGUI Port and Version

PySimpleGUI==3.35.0

Code or partial code causing the problem

Minimal example (freeze occurs after 'OK' is clicked):

#!/usr/bin/env python3
import PySimpleGUI as sg
window = sg.Window('Get filename example'). Layout([[sg.OK(), sg.Cancel()] ])
while True:
    window.Read()
    window.Disable()
@klieret klieret changed the title window.Disable() freezes whole Desktop environment window.Disable() freezes whole desktop environment May 28, 2019
@MikeTheWatchGuy
Copy link
Collaborator

@MikeTheWatchGuy MikeTheWatchGuy commented May 28, 2019

Wow!
What a cool capability!

I'll work on it.... but will rename existing window.Disable() to window.CleanupLinux() ;-)

Thank you for taking the time to fill out the form so completely.

It's greatly appreciated and ensures you're problem received priority treatment (it helps having code too like you posted!)

@klieret
Copy link
Author

@klieret klieret commented May 28, 2019

Yes, I'm quite amazed by this, too 😄

I tried the ssame on another Ubuntu 16.04 machine and also tried python 3.6.6 but it's the same issue. I'm surprised that this is even possible, but have no idea how to investigate this any further.

@MikeTheWatchGuy MikeTheWatchGuy changed the title window.Disable() freezes whole desktop environment [Enhancement] Create function PySimpleGUI.KillLinux() using code found in window.Disable() (freezes entire environment) May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.