Live data from Hacker News

PysimpleGUI

github.com

101–110 of 159 posts

Re: PysimpleGUI

#101
post #65

Earlier quoted context omitted.

From the github page: "The window definition is simplified by using Python core data types understood by beginners (lists and dictionaries)."

Why do you post that quote? I think there must be some implied meaning I'm not getting. Is there a way to use dictionaries to set properties and nest widgets in a similar way to my code example?

The second example shows setting text through a dictionary.

Re: PysimpleGUI

#102
post #21

Earlier quoted context omitted.

Look at Handbrake, which is a glorified UI for ffmpeg for example.

I use both handbrake GUI and yt-dlp GUI. Here's something they both do horribly and I would suggest for any CLI tool with a GUI wrapper: have a persistent textarea at the bottom of the GUI that shows the equivalent CLI call to the settings I select in real time. This will teach the user how your tool works and also give GUI-only users a taste of the power they could have if they used the command line. So basically, t…

Another example: gvim

Check out the shortcuts in its dropdown menus.

Re: PysimpleGUI

#105

What's the solution for shipping a desktop Python app these days? I use Python a lot for small internal tools and always land up having to ship it as part of a web service and build a web UI for it so staff can use it as "set up conda, install the deps and run python ... " doesn't fly

I find Nuitka worked a lot better than the alternatives. It genuinely compiles the Python to an executable, rather the all the other alternatives (like pyinstaller) which actually have the Python files hidden inside of them. It doesn't give any particular speed advantage (despite that being the original point) but works very well for packaging.

I would suggest using the "standalone" mode of Nuitka. As the name suggests, it is self contained, but it's a lot of files per program because all the C extension modules are separate files. It's tempting to use "onefile" model instead because it really is over for so seems neater, but this is really just a self extracting program with the same files hidden inside as standalone, so has a few issues like the other packagers (e.g. can trigger virus warnings or leave files lying around in temp directory).

Re: PysimpleGUI

#106
I like this part:

>> Want to share your PySimpleGUI program with friends and family that don't have Python installed on their computer? Try the GUI front-end for PyInstaller that you'll find in the psgcompiler project.

Re: PysimpleGUI

#107
post #15
post #6

In 2023 isnt it almost always better to make a webapp through dash or something if you need a “gui”?

As a user, definitely not. Web apps are slow, require an internet connection, don't integrate nicely with my OS, and generally inferior to native GUIs in just about every way.

Let's not forget that a web app, in general terms, requires a web server to run. Most users don't have the expertise or patience to run a server (not to mention all of the risks that come with running one).

Re: PysimpleGUI

#108
post #2

Does anyone have experience with this? The goal to lower the entry bar for GUI development seems laudable to me, wonder where the solution stops to work, though.

Yes it works, and my needs for GUI's are relatively simple so I haven't hit limits+issues. "Relatively simple"=Business app stuff like CRUD and also personal project+task mgmt tools.

Before I landed on this one I spent significant time testing/prototyping PyQt and TkInter. Those tools required more effort than I was looking for (based on expectations from past environments and tools for business app dev). PySimpleGUI is quicker and easier than the other tools and is powerful enough for my needs.

Re: PysimpleGUI

#110
post #39
post #29

What is the recommended modern way to write GUIs in Python? Assume I'm in Python 3.12 and have a Poetry project as my management solution and that I have general software and GUI experience. What do I use? My application might have lots of streaming data to be plotted, streaming images to be displayed, lots of buttons and other elements. Is it PyQt6 with PyQtGraph? I don't want it to look like a Python app.

Tkinter is fairly basic but feels very native on every platform I’ve tried, and it’s easy to use. There are lots of extensions available too. I just wrote a comment about it: If you’re interested in Python desktop apps, check out TKinter. I have a piece of boilerplate code I typically start with [0], and within an hour I can have a finished piece of software that runs in the native windows manager on any OS with no l…

How well does it handle live updating charts?
Post reply on HN