Ask coding questions

← Back to all posts
Python GUI
dylanharding33

is there a python GUI that works in repl?

Voters
JesusDavidDav18
PrestonPlayz1
braydenhintz24
cdCreepArghhh
ChinnatornB
zman2313
Linseman
StevenCox4
Jens_PaviaHamme
ElliotToll
Comments
hotnewtop
mat1

You can do what @21natzil suggested, or you can use Python Turtle
Please upvote this comment if it was helpful or useful in any way

21natzil

Remi is a library that acts like a GUI, and has similar syntax. However, it makes a website that have the GUI on it, instead of opening a window. This works great with repl.it! I should note, despite what the repository says, it doesn't work on firefox, however it's perfectly fine with chrome.

amasad

@21natzil Can you please open an issue on Github? The author is really helpful and he will fix it.

@dylanharding33 Check out the TicTacToe app we built with REMI https://repl.it/@amasad/tictactoe

DavideRosa

Hello @21natzil , I can help you. Which problem you got on Firefox?

21natzil

@DavideRosa I'll get to you later today, I'm not with my computer at the moment. However I do remember there being some issue with websockets when i checked the console.

DavideRosa

@21natzil I see the problem. I will investigate and solve it soon. Thank you for reporting.

DavideRosa

Hello @amasad I made some tests and unfortunately I'm unable to solve this. Maybe you can help?
The problem seems to be related with websocket, under ssl.
All goes fine if we run a python script with remi gui without ssl on repl.it (I used an hosted example you shown me in the past).
Under ssl instead, the websocket server is not reachable by Firefox. And the connection request terminates with a timeout.

Could it be related with some proxy inbetween?

amasad

@DavideRosa I'll take a look soon.

In the meantime maybe @basicer or @turbio can take a look.

DavideRosa

@amasad ok thank you. please keep me informed if there are news. ;-)

DavideRosa

@amasad I looked at http headers coming from Firefox. It seems that there isn't an "Upgrade: websocket" value (and this is the main cause of the remi malfunction).

EDITED:
It seems that Firefox send the right header, but for an unknown reason, an incomplete header arrives to the server. Do you know about any possible cause? again, maybe, the proxy in between?

Anonymousanon32
ash15khng

I think (from memory, may be wrong) @timmy_i_chen (whoops sorry for the ping) actually mentioned in a comment that they are going to try and start supporting Tkinter and pygame, you should check.

BOBMEISTER

You can use the built in library, Ttinker.

replitcode

@BOBMEISTER it doesn't work in repl.it actually... neither does pygame!

amasad

@replitcode we're looking at ways we can fix it. Hopefully starting this winter