[Python-ideas] A GUI for beginners and experts alike

Mike Barnett mike_barnett at hotmail.com
Fri Aug 24 10:52:05 EDT 2018


I saw this list prior to writing PySimpleGUI.  My goal is for this architecture to be on that list down the road.  Don’t care if it’s this package, only that something similar exist and is known in the community.

There is a gaping hole between command line and a simple GUI on the screen.  It’s a huge chasm.

Here’s a fun Python-like way of using the package.   You can collapse a custom form down to a single line of (readable) code.

    button, (filename,) = sg.FlexForm('Get filename example'). LayoutAndRead([[sg.Text('Filename')], [sg.Input(), sg.FileBrowse()], [sg.OK(), sg.Cancel()] ])

Or maybe break it up:

button, (filename,) = sg.FlexForm('Get filename example').LayoutAndRead(
                                                            [[sg.Text('Filename')],
                                                             [sg.Input(), sg.FileBrowse()],
                                                             [sg.OK(), sg.Cancel()]])


Can a few of you with the vast amount of GUI experience you have, spend 5 minutes and run one of the examples?
This will get you started:

pip install PySimpleGUI


Then copy and paste a Recipe from the Cookbook.
https://pysimplegui.readthedocs.io/en/latest/cookbook/

For someone with a dev environment running, it’s a 2 minute exercise.  It will make for more focused comments. I’m asking that it actually be tried because I don’t think anything like it has been proposed as a GUI framework.




@mike<mailto:mike_barnett at hotmail.com>

From: Wes Turner <wes.turner at gmail.com>
Sent: Friday, August 24, 2018 4:17 AM
To: Jonathan Fine <jfine2358 at gmail.com>
Cc: Mike Barnett <mike_barnett at hotmail.com>; python-ideas at python.org
Subject: Re: [Python-ideas] A GUI for beginners and experts alike

https://docs.python-guide.org/scenarios/gui/<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.python-guide.org%2Fscenarios%2Fgui%2F&data=02%7C01%7C%7C64cf0742a0df40c53a1e08d6099a03a8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636706954428482346&sdata=UX1htv%2B%2FcsIXQh4IQvVzY8zcYAl6ZmpVt7m7cwZ0QR4%3D&reserved=0> lists a bunch of great GUI projects for Python.

https://github.com/realpython/python-guide/blob/master/docs/scenarios/gui.rst<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frealpython%2Fpython-guide%2Fblob%2Fmaster%2Fdocs%2Fscenarios%2Fgui.rst&data=02%7C01%7C%7C64cf0742a0df40c53a1e08d6099a03a8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636706954428482346&sdata=pOImlRCDPs58hu%2FfqzTkVrG%2FxexLeps2u9YG3rtOckw%3D&reserved=0>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180824/8a6995e6/attachment-0001.html>


More information about the Python-ideas mailing list