Skip to content
Sign upLog in
← Back to Community

Python GUI

Profile icon
dylanharding33

is there a python GUI that works in repl?

Voters
Profile icon
PatcharinSuaysi
Profile icon
SierghieiPriiem
Profile icon
rezrez1
Profile icon
PaulMeehan
Profile icon
shrutikamble1
Profile icon
KajornsakKeanpr
Profile icon
SomePogDude1
Profile icon
JesusDavidDav18
Profile icon
PrestonPlayz1
Profile icon
braydenhintz24
Comments
hotnewtop
Profile icon
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.

Profile icon
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

Profile icon
DavideRosa

Hello

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

Profile icon
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.

Profile icon
DavideRosa

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

Profile icon
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?

Profile icon
amasad

@DavideRosa
I'll take a look soon.

In the meantime maybe

@basicer
or
@turbio
can take a look.

Profile icon
DavideRosa

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

Profile icon
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?

Profile icon
The-DailyDaily2
Profile icon
Anonymousanon32
Profile icon
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.

Profile icon
BOBMEISTER

You can use the built in library, Ttinker.

Profile icon
replitcode

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

Profile icon
amasad

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