Pysimplegui: [Community] Did you try PySimpleGUI because it does not require writing classes?

Created on 25 Nov 2018  路  6Comments  路  Source: PySimpleGUI/PySimpleGUI

I have a theory about the relative popularity of PySimpleGUI. I think the straightforward, procedural-styled interfaces are appealing to many of the users. Perhaps you haven't covered Classes in your Python class yet. Or maybe you're just not feeling entirely comfortable programming using classes.

_If you're one of those people, I would like to hear from you._ Or maybe you're not one of those people and you still chose PySimpleGUI despite it not requiring the use of classes.

In reality, classes are being used by users. Each of the Elements is a class. The Window is a class, etc. You're USING classes and class interfaces, it's just in a rather controlled kind of fashion where those interfaces are supplied to you by the way of design patterns such that you don't need to figure out how to make the calls, they have been given to you as a starting point.

community input desired

Most helpful comment

Same here. Classes are not the problem but the amount of boilerplate you normally need for a simple throw-away GUI. Most programmers are lazy, or rather, averse to pointless context switching between the stuff you really want to think about and the stuff you would have to think about to set up an GUI.

All 6 comments

I'm comfortable programming using classes, but have starting using PySimpleGUI because it makes it so simple to create a basic GUI. I also like that it's so easy to switch between PySimpleGUI and PySimpleGUIQt.

Same here. Classes are not the problem but the amount of boilerplate you normally need for a simple throw-away GUI. Most programmers are lazy, or rather, averse to pointless context switching between the stuff you really want to think about and the stuff you would have to think about to set up an GUI.

I agree with the previous posts. The reduction in boilerplate is the most attractive feature.

Boilerplate bandwagon +1

I understand classes but I have never 'written' a GUI before. (I've used tools like Visual Studio and forms using VBA) I've never really been interesting in 'writing' a GUI so I avoided it with python and stuck to command line stuff. With PySimpleGUI it's quick and easy to write a gui for my scripts so that's why I am using it.

I just began learning Python. I know a thing or two about Windows programming but am not terribly comfortable with classes.
I spent some time looking at the various GUI frameworks available for Python. Not straightforward because each has pros and cons.
I am just scratching the surface of Python, so I rather do not want to spend a lot of time learning the ins and outs of a GUI framework (such as QT for example).
I was primarily searching for a GUI framework that has a Visual Designer (I'm a fan of click-drag-drop .. :-) ). Except for QT, not many Visual Designers around for Python ...
For this reason, I skipped PySimpleGUI at first, but somehow it drew my attention again.
And I decided ... to use it! What attrackts me now so much in PSG is its remarkable ease of use! You are up and running in literally 5 mins. Also the row/column concept is so straightforward that you can build a GUI in a very short time.
Also the sequential nature of a PSG GUI is really clear and simple. In contrast of the typical event-driven GUI's.
I'm sure, sooner or later I will bump into a limitation of PSG, but we will have to find a workaround then.
For now, I'm a big fan for the above reasons.
A big thank you to the developers!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ihouses picture ihouses  路  6Comments

eyeonus picture eyeonus  路  6Comments

MikeTheWatchGuy picture MikeTheWatchGuy  路  3Comments

flowerbug picture flowerbug  路  4Comments

MikeTheWatchGuy picture MikeTheWatchGuy  路  5Comments