PySimpleGUI Adds Support For
amasad (1832)

PySimpleGUI, the simplest cross-platform Python GUI framework just added support for (web in general) and it's the simplest way I've seen UI being done on yet.

It has good autocompletion and it's well-documented. It's especially great for new coders that want to try their hands at coding GUI.

To get started simply import the library, create a window, and give it a layout! Here is a name reading app and repl:

import PySimpleGUIWeb as sg

window = sg.Window('hello world').Layout([
  [sg.Text('hello world')],
  [sg.InputText('enter name')],
  [sg.Submit(), sg.Cancel()]

[button, [name]] = window.Read()

if button == 'Submit':
  print('Hello ' + name)

You are viewing a single comment. View All
bhugh (0)

@amasad @PySimpleGUI @DavideRosa Remi & PySimpleGUIWeb can run independent sessions using the same URL but each session needs a different port.

On my machine at home this technique actually works quite well but when I tried it on I discovered that intercepts the port requested and replaces it (usually with port 80 or 443 it looks like).

So I don't know if that is an easy thing or a near-impossible thing under, but if you could allow different ports to be used, then it would allow multiple users per repl in these situations instance.

Partly what I'm thinking of here is easy of use for certain potentially nice online apps. Technical people are going to have no problem with "fork it, then reload the page" but if the average joe can just go to a page and start clicking it usually works better for them.