Live data from Hacker News

Show HN: Cross-platform desktop applications with PyQT

github.com

31–40 of 293 posts

Re: Show HN: Cross-platform desktop applications with PyQT

#31

Browsers should just provide controlled access to the operating system file system which will remove some large percentage of the use cases for Electron. It would be easier and much safer.

That is what Microsoft is doing with PWAs packaged as UWP apps.

Re: Show HN: Cross-platform desktop applications with PyQT

#32
post #17

Earlier quoted context omitted.

How is this an issue? Before Electron and other HTML/CSS-based "native" apps became all the rage (which is fairly recently), native apps were built using Qt, GTK, Cocoa, WPF, WinForms, MFC, etc., and they did just fine. Perhaps we just really don't need these "effects" and just need consistent, simple UIs of the sort that toolkits that paint native widgets can give you. Whenever I install an app that's built using so…

It’s the difference between HipChat and Slack. Like it or not, the users do.

What do you mean? I've uninstalled the Slack desktop app and just use the website because the app is such a terrible experience.

Re: Show HN: Cross-platform desktop applications with PyQT

#33
post #29

Earlier quoted context omitted.

> create a very good looking UIs I don't want a good looking UI, I want to have a fast and _usable_ UI! This fad in the UI and JS world that absolutely everything has to be "beautiful" needs to go away.

Maybe you don't want a good looking UI, but it's safe to say that at least 90% of users want a good looking UI. Good looking UI is a major part of user experience.

Not saying I don't believe you, but do you have a source for that 90% claim?

Re: Show HN: Cross-platform desktop applications with PyQT

#35
post #4

The main problem with "other toolkits" vs Electron apps is that they are not as simple to use in order to create a very good looking UIs. Compare how easy it is to use HTML and CSS in order to create a very complex UIs with all sort of effects vs how utterly complicated is to override, let's say, Qt's ::paint() method in order to achieve rich text inside a label. Let me repeat it. Rich text inside a label. Such a sim…

Hey, not sure if you knew this, but the QLabel class supports rich text by just setting the label text to a QString that contains rich text.

You don't need to override ::paint because the authors of the class already included support for rich text.

Re: Show HN: Cross-platform desktop applications with PyQT

#36
post #4

The main problem with "other toolkits" vs Electron apps is that they are not as simple to use in order to create a very good looking UIs. Compare how easy it is to use HTML and CSS in order to create a very complex UIs with all sort of effects vs how utterly complicated is to override, let's say, Qt's ::paint() method in order to achieve rich text inside a label. Let me repeat it. Rich text inside a label. Such a sim…

I would disagree with this as I've created many small apps using QT, and getting started is much easier than with Electron (in my opinion). It is as easy as this:

    import sys
    from PyQt5.QtWidgets import QApplication, QWidget

    if __name__ == '__main__':
        
        app = QApplication(sys.argv)

        w = QWidget()
        w.setWindowTitle('Hello, world!')
        w.show()
        
Also, styling apps in QT is really easy, in fact you can even use CSS: http://doc.qt.io/archives/qt-4.8/stylesheet-examples.html

Re: Show HN: Cross-platform desktop applications with PyQT

#37
post #4

The main problem with "other toolkits" vs Electron apps is that they are not as simple to use in order to create a very good looking UIs. Compare how easy it is to use HTML and CSS in order to create a very complex UIs with all sort of effects vs how utterly complicated is to override, let's say, Qt's ::paint() method in order to achieve rich text inside a label. Let me repeat it. Rich text inside a label. Such a sim…

QLabels support a subset of html and are styleable with simple css rules. But yes no animations or stuff like that.

Re: Show HN: Cross-platform desktop applications with PyQT

#38
post #17
post #4

The main problem with "other toolkits" vs Electron apps is that they are not as simple to use in order to create a very good looking UIs. Compare how easy it is to use HTML and CSS in order to create a very complex UIs with all sort of effects vs how utterly complicated is to override, let's say, Qt's ::paint() method in order to achieve rich text inside a label. Let me repeat it. Rich text inside a label. Such a sim…

How is this an issue? Before Electron and other HTML/CSS-based "native" apps became all the rage (which is fairly recently), native apps were built using Qt, GTK, Cocoa, WPF, WinForms, MFC, etc., and they did just fine. Perhaps we just really don't need these "effects" and just need consistent, simple UIs of the sort that toolkits that paint native widgets can give you. Whenever I install an app that's built using so…

"Bah humbug, the old stuff is good enough for me!" is a shitty answer.

Why would you not want a toolkit that makes rich application experiences across multiple platforms easy and standard?

I get that performance is a problem with the tooling in its current form (arguably...) but that's not a reason to ignore the problem electron is solving: creating complex UIs using things like WinForms, QT, GTK, Cocoa, etc SUCKS.

It requires learning vendor specific toolchains, different builds for different platforms, and an incredible amount of wasted time that could be spent developing your business logic instead.

Re: Show HN: Cross-platform desktop applications with PyQT

#40
post #4

The main problem with "other toolkits" vs Electron apps is that they are not as simple to use in order to create a very good looking UIs. Compare how easy it is to use HTML and CSS in order to create a very complex UIs with all sort of effects vs how utterly complicated is to override, let's say, Qt's ::paint() method in order to achieve rich text inside a label. Let me repeat it. Rich text inside a label. Such a sim…

> create a very good looking UIs I don't want a good looking UI, I want to have a fast and _usable_ UI! This fad in the UI and JS world that absolutely everything has to be "beautiful" needs to go away.

Then just use tkinter and avoid the licensing issue. The main draw of QT from literally almost everyone in the Python community is the beauty of Qt! Go read /r/python's latest, almost weekly discussion about GUI creation.

Edit: the snark... removed.

Post reply on HN