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

pypy support #23

Closed
MikeTheWatchGuy opened this issue Aug 2, 2018 · 4 comments
Closed

pypy support #23

MikeTheWatchGuy opened this issue Aug 2, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@MikeTheWatchGuy
Copy link
Collaborator

The current version of PySimpleGUI is 2.7 and works with pypy3 !

There seems to be an issue with Non-blocking forms and the debug window. Something closes the debug window when it shouldn't.

Look into better pypy support.

@MikeTheWatchGuy MikeTheWatchGuy added Bug Something's not right enhancement New feature or request and removed Bug Something's not right labels Aug 2, 2018
@john144
Copy link

john144 commented Sep 5, 2018

This might be related. I'm running Python 3.7 in Windows 10. I'm trying to create and write into a debug window using the code provided in the docs. However, the debug window will not remain open when the print loop finished. If I run this code from Idle in a .py file, the debug window remains open, but when I run it from a Windows commant prompt, or from PyCharm, or from Sublime Text, the debug window quickly opens, runs, and closes.

import PySimpleGUI as g
g.Print('Trying out the print cability')
print=g.Print
print('This really does work')
for i in range(100): 
     print(i)

@MikeTheWatchGuy
Copy link
Collaborator Author

MikeTheWatchGuy commented Sep 5, 2018

is there anything after the last print?

You need a Popup or some other window to stay open in order for the debug to remain.

There are problems with these non-blocking windows are the only thing remaining. You need to stay in the tkinter loop somehow and the best way is to print a sg.Popup at the end of your program.

import PySimpleGUI as g
g.Print('Trying out the print cability')
print=g.Print
print('This really does work')
for i in range(100):
     print(i)

g.Popup('End of my program')

@john144
Copy link

john144 commented Sep 5, 2018 via email

@MikeTheWatchGuy
Copy link
Collaborator Author

I haven't used the debug print very much, so let me know how it goes :-)

Just be aware that when multiple windows are open closing one of them can potentially affect others. If you have any problems just speak up.

I fixed a big in this code that was causing the pypy issue. I'm closing out the bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants