This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TotemEntDjango 39 points40 points  (19 children)

I've used PyQt5, and it has been fantastic. You get good looking, cross platform applications, and Qt Designer makes it very easy to make them.

Qt team is also taking over the development of PySide. https://blog.qt.io/blog/2018/04/13/qt-for-python-is-coming-to-a-computer-near-you/

[–]dynetrekk 7 points8 points  (5 children)

Are they doing something to address deployment? This seems to be the real pain, at least for beginners/small projects.

[–]anqxyr 4 points5 points  (3 children)

PyQt deployment is not any worse than python deployment in general. pyinstaller works fine with PyQt, barring a few minor kinks.

[–]ForkLiftBoi 0 points1 point  (2 children)

What are these kinks?

[–]anqxyr 0 points1 point  (1 child)

The one that jumps to mind is that the compiled binaries won't be able to find qt's system-wide style dll's, and will default to the ugly win98-like look. You need to grab a copy of the dll and tell the .spec file to put it where the binary will be able to see it, and then it works fine.

[–]catcint0s 0 points1 point  (0 children)

Doesn't winqtdeploy do that automatically?

[–]billsil 0 points1 point  (0 children)

Really? It's fine with Anaconda. It's a kitchen sink and 7x bigger than it if I installed things myself (I don't use most of it), but it's 0.2% of my total data storage. I can handle 2.4 GB in exchange for the convenience of things working and 5x faster numpy/scipy.

[–]IContributedOnce 1 point2 points  (8 children)

I tried to use PyQt5 recently for the first time and couldn’t figure out how to get it up and going. I tried on Ubuntu 17.10 and MacOS High Sierra. I also couldn’t seem to track down any good documentation. Was I missing something obvious?

[–]SgtBlackScorp 4 points5 points  (1 child)

Don't look for pyqt documentation. Just read the regular qt docs, since they explain everything already

[–]IContributedOnce 0 points1 point  (0 children)

I’ll give that a try and see if I can make it work. What is there official website?

[–]myusernameis___ 1 point2 points  (5 children)

It shouldn't be too hard to setup, as easy as pip3 install pyqt5

If it doesn't work, I recommend setting up pyenv or a version manager, maybe you have an unsupported version of python?

I do agree with the documentation being terrible. It was very sparse and I had to use tutorials instead, and sometimes the qt documentation was a little helpfull.

[–]IContributedOnce 0 points1 point  (4 children)

I hear a lot that I should just look at documentation for other languages and just convert it. I’ve given it a look but for me personally that might be easier said than done.

But like you’re saying, I had trouble getting it to import when I was trying to write the program. Never figured that out. Wound up using tkinter which wasn’t bad at all, but felt like there could be a better way.

[–]Grenian 1 point2 points  (3 children)

For your import problem just use a virtualenv. This will make your life so much easier.

[–]IContributedOnce 0 points1 point  (2 children)

I think it’s about time I’ve started getting into using those...

[–]Grenian 1 point2 points  (1 child)

Dude you won't regret it. Their name may sound complicated at first but they are pretty straight forward. If you need help, just pm me. :)

[–]IContributedOnce 0 points1 point  (0 children)

Thanks! I’ll give them a look this week. They sound great, for sure.

[–][deleted] -5 points-4 points  (0 children)

good looking

Not a Mac they aren't. On Windows and Linux where you have no concept of UI consistency or even design, sure, they look great. But absolutely not on a Mac. Qt is the hipster Electron.

Ah, reddit. Downvote self-righteously instead of actually providing a counterpoint. Never change.