I have been developing in HTML/Python for a while now. This works wonderfully. You just need to put all your business logic in Python, use PyQt to run all the platform specific code like file dialogs, printing, etc. but keep the main interface with React. You do that by having a webview with a service object being the bridge between Python and the JS view[0]. If you are a bit careful with the amount of information go…
I’m curious, does that work with sandboxing on the Mac? One of the things that Mac file dialogs do is implicitly expand the sandbox for the process that opens the file dialog . Is the other side of the bridge still able to access the selected path?
Show HN: Cross-platform desktop applications with PyQT
61–70 of 293 posts
Re: Show HN: Cross-platform desktop applications with PyQT
#62It costs $500 for a commercial license for PyQT!!!!!!! That is super welcoming for people that want to run more than CLI in 2018! /s
You can develop commercial apps with PyQT, your code just needs to be compatible with the GPL3 license ( https://www.riverbankcomputing.com/commercial/pyqt ). PyQT is not different from any other dual-licensed open-source project in that sense.
[1]: https://fman.io
Re: Show HN: Cross-platform desktop applications with PyQT
#63Earlier quoted context omitted.
> Except this sucks if, you know, you want to make some money on your app... Why is that a problem? You get a commercial license for PyQt and are good to go(?) > I love Python, but it has stagnated hard in the last few years. The 2 to 3 transition really hurt the Python ecosystem [...] I disagree. I think the ecosystem is more vibrant than ever. > Furthermore, packaging for different platforms is still a problem in 2…
$500 dollars... is "not expensive"? Beside the ML/AI sub-community, I am having a hard time finding GUI innovation in the Python ecosystem. Perhaps, you could show me an option that doesn't suck? I've tried Kivy, PyQt, PySide, Eel, gooey, etc... I am not a JS dev and had an electron/react app up and running that I easily ported to my Android phone in under an hour.
Re: Show HN: Cross-platform desktop applications with PyQT
#64Killer innovation is not the markup language but components (extremely flexible and trivially composable at any level).
Re: Show HN: Cross-platform desktop applications with PyQT
#65Earlier quoted context omitted.
What do you mean? I've uninstalled the Slack desktop app and just use the website because the app is such a terrible experience.
Wow. You realize they share most of the same code, and are essentially feature identical? Seriously, open the desktop app, then open the web app. They're identical. Precisely because they chose to use a toolkit that let them easily handle cross platform issues with UI in a sane and repeatable manner.
Re: Show HN: Cross-platform desktop applications with PyQT
#66I wish them the best of luck, but I don't think it's going to happen, because one of the big reasons Electron is popular is because web-dev people don't want to learn other languages.
Re: Show HN: Cross-platform desktop applications with PyQT
#67> "PyQt is dual licensed on all supported platforms under the GNU GPL v3 and the Riverbank Commercial License. Unlike Qt, PyQt is not available under the LGPL. You can purchase the commercial version of PyQt here. More information about licensing can be found in the License FAQ." Except this sucks if, you know, you want to make some money on your app... Kicking the tires for a potentially commercial app is a FULL sto…
> Except this sucks if, you know, you want to make some money on your app... Why is that a problem? You get a commercial license for PyQt and are good to go(?) > I love Python, but it has stagnated hard in the last few years. The 2 to 3 transition really hurt the Python ecosystem [...] I disagree. I think the ecosystem is more vibrant than ever. > Furthermore, packaging for different platforms is still a problem in 2…
Re: Show HN: Cross-platform desktop applications with PyQT
#68Earlier quoted context omitted.
I agree that HTML/CSS is easier to use, though maybe some of that is just because everybody has been using them for years. However, you certainly don't have to override ::paint() to get rich text inside a label. You can use a simple subset of HTML in your QLabel to get various text effects.
Please read in between lines... I could easy write any other example. Don't make me compare HTML/CSS's flexibility with Qt's...
Re: Show HN: Cross-platform desktop applications with PyQT
#69Earlier quoted context omitted.
I agree that HTML/CSS is easier to use, though maybe some of that is just because everybody has been using them for years. However, you certainly don't have to override ::paint() to get rich text inside a label. You can use a simple subset of HTML in your QLabel to get various text effects.
Please read in between lines... I could easy write any other example. Don't make me compare HTML/CSS's flexibility with Qt's...
Re: Show HN: Cross-platform desktop applications with PyQT
#70> "PyQt is dual licensed on all supported platforms under the GNU GPL v3 and the Riverbank Commercial License. Unlike Qt, PyQt is not available under the LGPL. You can purchase the commercial version of PyQt here. More information about licensing can be found in the License FAQ." Except this sucks if, you know, you want to make some money on your app... Kicking the tires for a potentially commercial app is a FULL sto…