-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
[PySimpleGUI] How to startup in a repl.it friendly way #280
Comments
Hello @MikeTheWatchGuy , |
Whew! I'm glad it's not just me! I took a peek at Heroku. You're fearless! I couldn't make sense of any of it, but I'm not a web guy. |
@MikeTheWatchGuy got it working on Heroku https://remitest.herokuapp.com/ |
Oh wow! You're SO productive! This is amazing |
Here is an heroku "tutorial": Download Heroku console from here heroku import remi.gui as gui
from remi import start, App
import os
class MyApp(App):
def main(self):
main_container = gui.VBox(width=300, height=200, style={'margin':'0px auto'})
return main_container
if __name__ == "__main__":
heroku_port = int(os.environ['PORT'])
start(MyApp, address='0.0.0.0', port=heroku_port, start_browser=False) create a file named "Procfile" without extension and write inside From the windows console type the following commands
let me know if it works for you ;-) |
Following these steps works. Thanks @dddomodossola ! |
you are welcome ;-) |
I never completed getting it working... I've got too many other fixes to put into my code that you've already given me. |
Oh, I do have a question.... I am unable to run some of my repl.it scripts if it is loaded on another web page. I tried experimenting with the startup settings but didn't find a workaround. As long as it's the only repl.it thing running, It all works great. |
This one can be closed as I've been working with repl.it folks for any problems I've had on there recently. |
I'm able to run my programs locally with no trouble.
I'm able to sometimes run my repl.it versions of the same program with no issues.
BUT, I'm finding if I have a browser window open with another repl.it script running, then my scripts have issues. At least I think that's part of the problem.
I also find that the MyApp object's init call is made several times.
Here is my current "start" call:
Here's my repl.it code: https://repl.it/@PySimpleGUI/Design-Pattern-1-One-shot-Window
And here's the errors I got despite it working
The text was updated successfully, but these errors were encountered: