TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Python GUIs for Humans – Transforms UI into People-Friendly Pythonic Interfaces

275 pointsby dragonshover 3 years ago

22 comments

frederikvsover 3 years ago
For those looking to build a simple GUI, another option is Gooey [0]. It takes your arparse declarations and builds a simple GUI based on that.<p>Gooey is probably easier to set up, but PySimpleGUI looks like it&#x27;s more flexible and powerful. Look at your own battle and choose your weapons accordingly :-)<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;chriskiehl&#x2F;Gooey" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chriskiehl&#x2F;Gooey</a>
评论 #28603193 未加载
arpafauconover 3 years ago
Kudos to the writer! I used this framework for an small robotics project and, as others pointed out, I was up and running in less than an hour. However, as the project grew more complex, I reached a point where I felt the framework was in the way: I wanted complex things, and lacked the means to configure the framework that precisely. I would recommend others to keep the framework for what it does so incredibly well : small &#x2F; prototypes projects ; but do not hesitate to switch to a more powerful backend once you feel your needs are complexifying.
评论 #28602382 未加载
hexadecover 3 years ago
This is an incredible project I had never even heard of before. This is what github&#x2F;lab projects should be in my opinion. An incredible solution, well documented, with exceptional examples. I got the intent and was up and running in less than an hour. Great functionality as well in terms of simplifying layout and portability.
41209over 3 years ago
Very very neat.<p>I might use this the next time I need to build out a small personal project. I&#x27;ve taken a rather strong liking to Python recently. So much is built into the standard library compared to NodeJS. Very useful for quick projects&#x2F; AWS lambdas where installing dependencies is a pain.<p>Do you have a good guide on wrapping this in a binary ?<p>Wouldn&#x27;t be able to use it in a corporate environment though, the licensing isn&#x27;t great for that.
analog31over 3 years ago
I like the concept a lot, having written my own &quot;wrapper&quot; for Tkinter and wishing I could adapt it to Remi. My only thought is that defining the contents of a layout as a dict instead of a list, would allow the elements to be referenced by a name rather than number. That would make it easier to read and modify one&#x27;s own code.
评论 #28605359 未加载
评论 #28601746 未加载
semiregover 3 years ago
Does this kind of app distribute easily? As in, can I package up the runtime and the app into a single exe? I see this, but does someone have experience to share?<p>Edit: Found it!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;PySimpleGUI&#x2F;PySimpleGUI&#x2F;blob&#x2F;master&#x2F;docs&#x2F;cookbook.md#creating-a-windows-exe-file" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PySimpleGUI&#x2F;PySimpleGUI&#x2F;blob&#x2F;master&#x2F;docs&#x2F;...</a>
评论 #28602795 未加载
评论 #28601500 未加载
wraptileover 3 years ago
I used PySimpleGUI in a devops app that used the new tables widget (only on tkinter) to track&#x2F;resolve&#x2F;debug issues (i.e. domain specific sentry). It worked really well! The whole codebase was 300 loc: pull issues from api, put them into table rows, filter rows by combobox filters and handle button presses.<p>Unfortunately as the app grew the main loop became really hard to follow and I&#x27;ve started to miss callbacks or some sort of oop wrapper around the whole thing. I also noticed that any other backend than TKinter was more like a 3rd class citizen rather than an alternative. Other than that it&#x27;s probably the best GUI programming entrypoint in Python!
phil294over 3 years ago
Does anyone know how this compares to guietta? [1] Both look quite similar, and I have already successfully used the latter in two small projects. It was so easy to set up, I had not even have to read much of the documentation at all.<p>Edit: I have found the answer in the docs [2]<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;alfiopuglisi&#x2F;guietta&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alfiopuglisi&#x2F;guietta&#x2F;</a> [2] <a href="https:&#x2F;&#x2F;guietta.readthedocs.io&#x2F;en&#x2F;latest&#x2F;intro.html#aren-t-you-just-copying-from-pysimplegui" rel="nofollow">https:&#x2F;&#x2F;guietta.readthedocs.io&#x2F;en&#x2F;latest&#x2F;intro.html#aren-t-y...</a>
评论 #28604763 未加载
jimnotgymover 3 years ago
I can&#x27;t help but love projects like this. I used to write simple apps that took a simple input and did a thing... and it seems so unintuitive compared to VisualBasic, for instance, even allowing for defining windows programmatically.
Raineerover 3 years ago
Just finished up a Python class as part of my EE this summer. I had no idea this wasn&#x27;t the default way everyone did Python GUIs. This was the main library we used throughout - it was very approachable and easy to configure.
mtoohigover 3 years ago
I&#x27;ve also found this project to be very good. I used it for a personal project to help me manually tag images and prepare a payload to upload to a remote server&#x27;s database.<p>Some of their naming conventions though are odd IMO but otherwise I thought it was an easier way to process images than a webapp which is my usual working area. Now that I think of it though, a juniper notebook may have also been a solution but I wanted to dabble with writing a GUI.
KingMachiavelliover 3 years ago
Is there something like this but creates a simple web app?
评论 #28602707 未加载
评论 #28603418 未加载
评论 #28603817 未加载
评论 #28601911 未加载
评论 #28613075 未加载
评论 #28603239 未加载
GeorgeTirebiterover 3 years ago
I wrote a pretty fancy GUI for a real-time system (was handled by MPUs externally, so no real-time in GUI). I found it to be fairly easy to use; there are plenty of examples, and often you can mix-and-match from the examples to get what you want.<p>It&#x27;s also true that as you want fancier interactions, you have to be clever to get the framework to do what you want. It&#x27;s very good --- best easy-to-use Python GUI I&#x27;d say --- but it won&#x27;t handle every fancy GUI requirement. (That&#x27;s why you have PyQt etc)
mwexlerover 3 years ago
Props for the best readme I&#x27;ve seen on GH in a long, long time.
cafardover 3 years ago
Interesting. PythonCard used to be a very handy tool, built on top of wxPython, but it was abandoned some years ago.
mdtrooperover 3 years ago
One question. Which is the best python library for TUI?<p>I used to use <a href="http:&#x2F;&#x2F;urwid.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;urwid.org&#x2F;</a> but It needs a lot of code to do the stuffs.<p>I look for a library that is packaged in Debian (if something is in Debian, it is standard and has long life).
brian_hermanover 3 years ago
I&#x27;ve used pysimplegui at work it is a great framework to get up and working for a simple gui. It took me 30 minutes to code the gui and I sent it to our underwriting department to help them deal with a bug we were having with our system.
pryelluwover 3 years ago
I’ve used this to build stuff of various complexity and it works well. The docs are good.
thecalover 3 years ago
I&#x27;ve used this library twice, it is fantastic when you need a simple GUI on top of a Python script. Congrats for being on the front page of HN!
Barrin92over 3 years ago
I really like the &quot;interface layout as a list of lists&quot; idea. It&#x27;s kind of like a LISP &#x27;code is data&#x27; paradigm but for guis
naomeuxover 3 years ago
The code looks readable. This needs to be exposed, it&#x27;s quite easy, and it seems interactive.
ameliusover 3 years ago
The example code almost looks like HTML ...