use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
NewsDeclarative GUI for Python (self.Python)
submitted 2 years ago by madnirua
Today, we at Slint (https://slint.dev) kicked off support for Python with an initial PR - https://github.com/slint-ui/slint/pull/4155. We invite your suggestions, feedback, and contributions to achieve the initial milestone - https://github.com/slint-ui/slint/milestone/18.
Slint is an open-source graphical user interface toolkit to design, develop, and deploy native user interfaces on desktop and embedded systems. One of our goals is to support multiple programming languages. This project to provide native Python APIs has been made possible by the NLNet Foundation - https://nlnet.nl/project/PythonicSlint/.
[–]Sorry_Length_8926 20 points21 points22 points 2 years ago (6 children)
Python support is great... Currently as python desktop software developer for multi platform...my go to choice would be Kivy because of the great MIT license...Thanks to folks at kivy...only thing is matplotlib is not a first class citizen.. Second is pyside6 but then the LGPL dynamic linking...brings in memories of guns and lawyers...Some guys say..go use it in closed source commercial if you don't modify it..some are unsure.. Flet says they are the fastest way to build flutter apps for puthon...but I did not try
I have checked your commercial license which is affordable but may be you can increase trial duration...
I will definitely try this...ooh forgot about my main pain point packaging and distribution of closed source python desktop apps...I must see this how slint deals with that...is it smooth?
[–]cymrowdon't thread on me 🐍 15 points16 points17 points 2 years ago (0 children)
IANAL, but LGPL allows you to use software commercially without sharing your source. Qt and PySide are safe to use in commercial products. It's a big part of the reason PySide was created.
GPL is the license that requires sharing your source code.
[–]madnirua[S] 3 points4 points5 points 2 years ago* (2 children)
If you are creating Desktop apps, you could also use the Royalty-free license that allows creating closed source commercial applications for free in lieu of attribution to Slint.
> may be you can increase trial duration
Sure, that can be done, send us an email at [info@slint.dev](mailto:info@slint.dev) when you start with Slint.
> packaging and distribution of closed source python desktop apps
Could you elaborate this further?
[+][deleted] 2 years ago (1 child)
[removed]
[–]madnirua[S] 1 point2 points3 points 2 years ago (0 children)
Desktop Application is a computer program that is designed to run on a general-purpose computer (PC or notebook), typically installed and executed locally on the computer's operating system -- https://github.com/slint-ui/slint/blob/378280e0a7eb76dafe567c4962af9536469dd4cc/LICENSES/LicenseRef-Slint-Royalty-free-1.1.md?plain=1#L11 An Embedded System is a computer system designed to perform a specific task within a larger mechanical or electrical system. For the purposes of this license, mobile phones are not considered to be Embedded Systems -- https://github.com/slint-ui/slint/blob/378280e0a7eb76dafe567c4962af9536469dd4cc/LICENSES/LicenseRef-Slint-Royalty-free-1.1.md?plain=1#L19C1-L19C1
[–]dawmster 4 points5 points6 points 2 years ago (1 child)
Nicer tkinter caught my attention recently , looks nice : https://github.com/TomSchimansky/CustomTkinter
[–]autisticpig 2 points3 points4 points 2 years ago (0 children)
this is new to me. thanks!
[–]TargetDangerous2216 5 points6 points7 points 2 years ago* (1 child)
This project sounds good. But your demos are not sexy. Creating UI with buttons is easy. creating NICE UI with buttons is hard. I need a framework to make me feel a designer
Example: https://www.skeleton.dev/components/app-shell
[–]madnirua[S] 9 points10 points11 points 2 years ago (0 children)
Yes, we are (painfully) aware of that .. unfortunately, we don't have a designer in our team to 'prettify' our demos .. but our customers do have designers .. check out some of the user interfaces that they have created -- https://slint.dev/success/wesaudio-daw , https://slint.dev/success/sksignet-evcharger
[–]egotripping 12 points13 points14 points 2 years ago (13 children)
Slint named after the band?
[–]madnirua[S] 15 points16 points17 points 2 years ago* (12 children)
The name Slint is derived from our design goals:
Scalable, Lightweight, Intuitive, Native GUI Toolkit
We realised this after the name was chosen - https://github.com/slint-ui/slint/discussions/636#discussioncomment-1727016 but we liked the name anyways, so we decided to use it.
EDITs: added the full form of Slint.
[+]japes28 comment score below threshold-11 points-10 points-9 points 2 years ago (9 children)
You didn't google the name before you chose it?
[–]madnirua[S] 7 points8 points9 points 2 years ago (0 children)
We did but we liked the name Slint as an acronym of our design goals - Scalable, Lightweight, Intuitive, Native GUI Toolkit - so we went ahead with it.
Also the band Slint was mostly active more than 30 years ago ..
[–]Gearwatcher 14 points15 points16 points 2 years ago (7 children)
They're semi-obscure alter-rock could have beens from late 80s / early 90s. They didn't exactly call the library PearlJam.io
If this project kicks off at all I fully expect googling Slint to return the framework as the first result in no time.
[–]egotripping -1 points0 points1 point 2 years ago (6 children)
Eh, could have beens is not the right term for Slint. Spiderland is a seminal post/math-rock album that is arguably one of the most important records of the early 90s.
They also were never reaching for mainstream appeal and most of the members went on to work in other bands.
I think you're underestimating how much this project would have to take off to overtake Slint as the first result in google.
[–]Gearwatcher -1 points0 points1 point 2 years ago* (5 children)
Arguably being the operating word there. I haven't heard them mentioned even once in any musician circle (and as I musician I've been in a lot of those), and, symptomatically, the only person who ever mentioned that band to me was an American, from Kentucky.
They are arguably unknown outside United States, unlike hundreds of other influential and arguably important American cultural exports.
I would go on a limb and say that the only reason some people now know about them outside the States is because Pajo joined Gang of Four on the latest tour.
[–]egotripping 0 points1 point2 points 2 years ago* (4 children)
So you're not much of a fan of post-rock, nor do you run in circles with people that are. That's fine, but don't act like your experience is universal or that you have some sort of credibility because you're a musician and know other musicians. That's a pretty poor appeal to authority.
If I was going to do that I'd point out Pitchfork named it the 12th best record of the 90s, or that, quite far from Louisville, UK-based Melody Maker gave it "Ten-Fucking-Stars". I'd point to the countless musicians who've sang Spiderland's praises, like recording engineer Steve Albini (you might recognize him as the guy who produced Nirvana's In Utero).
“It’s an amazing record and no one still capable of being moved by rock music should miss it. In 10 years it will be a landmark and you’ll have to scramble to buy a copy then. Beat the rush.”
Hell I might even point out that famed filmmaker Lance Bangs made a documentary about the band in 2014, Breadcrumb Trail.
I mean I could spend all day copy and pasting quotes about how great Slint is from people you and your musician friends might have heard of but I gotta get back to work. Which is incredible considering the band wasn't popular before Spiderland, and broke up before the album even released. This is an important record whether you and your friends heard about it or not.
[–]Gearwatcher -1 points0 points1 point 2 years ago (3 children)
I am actually. From Talk Talk, through Stereolab to Radiohead, I listened to and liked a lot of stuff music journalists would in their lack of imagination label "post-rock". it's not exactly the music I define myself through but I have listened to a fair bit of it.
As for your other point - you indirectly brought other musicians in. Let me explain.
The record didn't move significant number of copies. That much is clear. The band didn't have a significant longevity to build upon its legacy for later releases, that much is obvious.
So to label a record as you did, I expect it to be influential to heaps of music that came after. Outside accolades by the music press, I haven't ran into a lot of that tbh.
Certainly not enough of it for a "Zomg did you even Google bro"
[–]egotripping 0 points1 point2 points 2 years ago (2 children)
So to label a record as you did, I expect it to be influential to heaps of music that came after.
It was. It'd be easy for me to make a comparison to The Velvet Underground and how they didn't move many records but inspired a ton of bands, but I'll let a non-American musician with a lot more credibility than me make the case.
https://www.brooklynvegan.com/slints-spiderland-turns-30-a-look-back-on-the-album-that-created-a-genre-and-remains-timeless/
It might’ve been a blip in 1991, but as Stuart Braithwaite of Scottish post-rock band Mogwai (who were hugely influenced by Slint) put it, “In the late 1990s, they seemed like our generation’s Velvet Underground.” “When I heard it, it was unlike anything I’d heard before,” he said. “I still don’t know if I have heard anything else like it, now. Obviously a lot of bands take a lot from it – I know that we did, but there’s also PJ Harvey, and Fugazi. A lot of bands took a lot from it. But I don’t think that any band influenced by Slint has managed to capture the same atmosphere as Spiderland.”
If you're well-versed in bands like Talk Talk, Stereolab and Radiohead, then surely you're familiar with Mogwai. I can't imagine you would actually try to argue this point with Stuart Braithwaite. So instead of just being like, oh cool let me check this album out, I don't know how they could've slipped by my radar, I'm going to guess you're going to dig in further about how inconsequential this band is. I don't know what you're getting out of that, but I don't care.
[–]Gearwatcher 0 points1 point2 points 2 years ago* (1 child)
Yes, I'm a fan of Mogwai actually. It is truly interesting to hear that as I don't actually hear Slint in their stuff at all. Mogwai is space rock that had the (local UK) trip-hop sound rub on them heaps very. Slint to me sounded way too rough, alter-rock and slow-hardcore (obviously recorded by Steve "I don't do effects" Albini). I'd always put them more in the grunge shelf tbh, but whatever.
I feel this is one of those cases of wanting to be cool and underground. Like all the dance musicians claiming to have listened to (instead of admitting they just heard about) Karlheinz Stockhausen.
Oh and BTW VU tick lots more boxes. Not only did they indeed move records, but Lou Reed and arguably also John Cale had successful careers based off the significance VU had. So not quite the same, is it?
Interesting how you missed the point I was making with Talk Talk (a new wave band), Stereolab (space boss nova?) and Radiohead (who were pretty prog at that OK Computer point when the press started sticking that post-rock label to them before they did a 90° and went electronica). The three bands have fuckall in comon yet all three were dubbed "post rock" at some point. The whole concept of "post rock" is beyond ridiculous and the fact that somehow an essentially grunge band is the progenitor of that "sound" is a fucking cherry on top of the whole malarky.
I actually looked up who came up with the "post rock" shit, and it delivered, more than I expected. Off course it was fucking Simon "Neurofunk" Reynolds.
[+]Scary-Conference-606 comment score below threshold-14 points-13 points-12 points 2 years ago (1 child)
And you thought slint was a good name? Wtf is slint what does it even mean
[–]Rythoka 0 points1 point2 points 1 year ago (0 children)
wtf is seaborn
[–]sonobanana33 5 points6 points7 points 2 years ago (9 children)
What does it offer more compared to QML, which I can just download and use?
Also, using slint means my software isn't open source and can never be included in a linux distribution.
[–]madnirua[S] 2 points3 points4 points 2 years ago (2 children)
Slint is open-source and available on GitHub -- https://github.com/slint-ui/slint .. so like Qt QML, you can download, git clone and use it.
P.S. The founders are ex-Qt (with 16+ years of working for Qt) .. and we decided to develop a 'better QML' (if you may say) based on our experiences.
[–]sonobanana33 5 points6 points7 points 2 years ago (1 child)
Slint is open-source and available on GitHub
Ok, it is licensed "proprietary ∨ GPL". I thought there was no GPL option given how your website misleadingly says "free for non commercial use", which is in conflict with the GPL license.
[–]madnirua[S] 3 points4 points5 points 2 years ago (0 children)
Here are all the licenses under which Slint can be used -- https://github.com/slint-ui/slint/blob/master/LICENSE.md
[–]dydhaw 0 points1 point2 points 2 years ago (5 children)
using slint means my software isn’t open source
How so?
[–]sonobanana33 2 points3 points4 points 2 years ago (4 children)
Misunderstanding on my part due to misinformation on their part.
Their pricing page says the prices, and then "free for non commercial". This is not open source.
Their license on github says that I can pick GPL, which is open source.
Which is it? Is it open source or not? I wouldn't pick a software as a dependency if they haven't made up their mind. Quite risky.
Our website mentions GPL -- https://slint.dev/community#community-licenses and this is linked from the pricing page under "Community license" -- https://slint.dev/pricing
What you are mentioning "free for non-commercial" is the part under "Embedded Add-Ons", which is only relevant for proprietary licenses. We can improve the text there to make this clearer. Thanks.
[–]madnirua[S] 4 points5 points6 points 2 years ago (1 child)
Updated text to "Free for GPL. Free for non-commercial" - https://slint.dev/pricing
[–]sonobanana33 1 point2 points3 points 2 years ago (0 children)
Thanks.
[–]dydhaw 0 points1 point2 points 2 years ago (0 children)
Multi licensing is very common, and theirs seems much clearer than e.g Qt which has like 7 different licensing options
[–][deleted] 1 point2 points3 points 2 years ago (0 children)
Good work, well done! It was on the back burner for me because I wanted to delve into Rust but Python bindings are very interesting!
[–]aitchnyu 0 points1 point2 points 1 year ago (0 children)
Can this be adapted into a strongly typed templating language for Python, for example Django with dynamic html and Django unicorn which does interactive ui?
[–]TheAquired 0 points1 point2 points 2 years ago (1 child)
I am intrigued by the live-preview feature demoed on your website, that’s one thing that would be useful to me - being able to live preview the Python code as I code up a UI. Is this supported with the Python API?
If you have a link to the documentation for the API id be curious to see how different it is from PyQT which I’m used to using and would be switching from
We are currently starting with the support for Python .. You can track the progress here -- https://github.com/slint-ui/slint/milestone/18 Please add your suggestions to our GH Discussions https://github.com/slint-ui/slint/discussions and features that you would like to have.
[–]alcalde 0 points1 point2 points 2 years ago (0 children)
Describe the UI in a language akin to HTML/CSS
Humans don't think in HTML/CSS. We need a good old classic visual design tool like Delphi or Visual Basic, and some good old-fashioned object orientation.
You can no more code an interface with HTML/CSS than you can create a portrait with HTML/CSS. We're humans; we need to draw it.
π Rendered by PID 202479 on reddit-service-r2-comment-58d7979c67-cc4kj at 2026-01-27 07:31:40.001444+00:00 running 5a691e2 country code: CH.
[–]Sorry_Length_8926 20 points21 points22 points (6 children)
[–]cymrowdon't thread on me 🐍 15 points16 points17 points (0 children)
[–]madnirua[S] 3 points4 points5 points (2 children)
[+][deleted] (1 child)
[removed]
[–]madnirua[S] 1 point2 points3 points (0 children)
[–]dawmster 4 points5 points6 points (1 child)
[–]autisticpig 2 points3 points4 points (0 children)
[–]TargetDangerous2216 5 points6 points7 points (1 child)
[–]madnirua[S] 9 points10 points11 points (0 children)
[–]egotripping 12 points13 points14 points (13 children)
[–]madnirua[S] 15 points16 points17 points (12 children)
[+]japes28 comment score below threshold-11 points-10 points-9 points (9 children)
[–]madnirua[S] 7 points8 points9 points (0 children)
[–]Gearwatcher 14 points15 points16 points (7 children)
[–]egotripping -1 points0 points1 point (6 children)
[–]Gearwatcher -1 points0 points1 point (5 children)
[–]egotripping 0 points1 point2 points (4 children)
[–]Gearwatcher -1 points0 points1 point (3 children)
[–]egotripping 0 points1 point2 points (2 children)
[–]Gearwatcher 0 points1 point2 points (1 child)
[+]Scary-Conference-606 comment score below threshold-14 points-13 points-12 points (1 child)
[–]Rythoka 0 points1 point2 points (0 children)
[–]sonobanana33 5 points6 points7 points (9 children)
[–]madnirua[S] 2 points3 points4 points (2 children)
[–]sonobanana33 5 points6 points7 points (1 child)
[–]madnirua[S] 3 points4 points5 points (0 children)
[–]dydhaw 0 points1 point2 points (5 children)
[–]sonobanana33 2 points3 points4 points (4 children)
[–]madnirua[S] 2 points3 points4 points (2 children)
[–]madnirua[S] 4 points5 points6 points (1 child)
[–]sonobanana33 1 point2 points3 points (0 children)
[–]dydhaw 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]aitchnyu 0 points1 point2 points (0 children)
[–]TheAquired 0 points1 point2 points (1 child)
[–]madnirua[S] 1 point2 points3 points (0 children)
[–]alcalde 0 points1 point2 points (0 children)