Live data from Hacker News

Hello Qt for Python

blog.qt.io

141–150 of 176 posts

Re: Hello Qt for Python

#141
post #51
post #44

Earlier quoted context omitted.

I just took a look at delphi. What’s so unique about its ui builder?

It was (is?) very powerful and at the same time very easy to use. Not sure about alternatives nowadays...

Mostly Java and .NET, if we let aside the AOT compilation part, although it is being improved.

Re: Hello Qt for Python

#142

This is like 10 years too late. This could have prevented electron.

Most interfaces created through web technology would be incredibly hard and slow to do using pyside/pyqt. We take for granted the non-blocking aspect of javasript where in python in order to make a slick interface would require to deal with threads/GIL in a much slower interpreted language compared with javascript running on V8. Qt (Qt Desktop) bindings for python are welcome. But, it's not a suitable for a viable re…

We have asyncio now to handle things in a non-blocking way with async/await. Someone just needs to write an implementation of asyncio.AbstractEventLoop that hooks into the Qt event loop.

Re: Hello Qt for Python

#143
Took me a while to figure out the "pip install" command:

  pip install --index-url=http://download.qt.io/snapshots/ci/pyside/5.9/latest/ pyside2 --trusted-host download.qt.io
(with python 3.6 or 2.5)

Re: Hello Qt for Python

#144

Earlier quoted context omitted.

Has the python qt installation story improved much recently? A few years ago it was a pain to set up, especially within a virtualenv, which was one of my only complaints with it. Everything else was wonderful.

You can just do `pip install PyQt5` now. That is possible without a virtual environment, but in practice I think you still want to use one: python3 -m venv venv && source venv/bin/activate && pip install PyQt5.

pip installing binary dependencies! What could go wrong?

Re: Hello Qt for Python

#145
post #139
post #122

Earlier quoted context omitted.

wxPython is a thing that exists, and I believe it has a similar mental model to wxWidgets. To be honest most of the QT solutions for Python are pretty fidgety . The recent wxPython releases (4.x) work out of the box direct from PyPI, not too much to worry about licensing. For Qt, it's... the licensing is usually just fine for people but it's complex enough to where things like maintaining your own fork (pretty easy i…

Qt license is pretty ok, it is just complicated for the typical crowd that wants to sell stuff built with free (beer) tools.

I guess the proper rephrasing is that it doesn't match the licensing terms of most projects in the Python world.

It's most definitely not the most complicated thing, but when your processes are based off of BSD'd libraries, you gotta think a bit harder about Qt usage, if only for it falling outside the normal scope of things.

Re: Hello Qt for Python

#146
post #144

Earlier quoted context omitted.

You can just do `pip install PyQt5` now. That is possible without a virtual environment, but in practice I think you still want to use one: python3 -m venv venv && source venv/bin/activate && pip install PyQt5.

pip installing binary dependencies! What could go wrong?

What could go wrong?

Re: Hello Qt for Python

#147
post #144

Earlier quoted context omitted.

You can just do `pip install PyQt5` now. That is possible without a virtual environment, but in practice I think you still want to use one: python3 -m venv venv && source venv/bin/activate && pip install PyQt5.

pip installing binary dependencies! What could go wrong?

With the new binary wheels, this actually works now - at least on Windows 10 and misc Linux distros (and according to other comments here, on Mac OS too).

On Linux you might want to get the distros qt/qt-dev packages, as usual. But as far as I can recall, you generally don't have to.

Re: Hello Qt for Python

#148
post #122

Earlier quoted context omitted.

wxPython is a thing that exists, and I believe it has a similar mental model to wxWidgets. To be honest most of the QT solutions for Python are pretty fidgety . The recent wxPython releases (4.x) work out of the box direct from PyPI, not too much to worry about licensing. For Qt, it's... the licensing is usually just fine for people but it's complex enough to where things like maintaining your own fork (pretty easy i…

Isn't the licensing LGPL3? How is this confusing?

How do I provide end users the ability to swap out LGPL3 shared objects (as required by the license) on an embedded platform with no access, or inside a py2exe bundle?

Re: Hello Qt for Python

#149
post #146
post #144

Earlier quoted context omitted.

pip installing binary dependencies! What could go wrong?

What could go wrong?

Mix of dynamic libraries, missing libraries, mismatch between libc versions. Requirements for a c compiler to be available.

But all of these things have improved greatly, in my recent experience.

Re: Hello Qt for Python

#150
post #142

Earlier quoted context omitted.

Most interfaces created through web technology would be incredibly hard and slow to do using pyside/pyqt. We take for granted the non-blocking aspect of javasript where in python in order to make a slick interface would require to deal with threads/GIL in a much slower interpreted language compared with javascript running on V8. Qt (Qt Desktop) bindings for python are welcome. But, it's not a suitable for a viable re…

We have asyncio now to handle things in a non-blocking way with async/await. Someone just needs to write an implementation of asyncio.AbstractEventLoop that hooks into the Qt event loop.

And then they need to write an async version of everything you might want to use. And then they're done!
Post reply on HN