Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "pyqt5"
-
I’m developing a fairly sophisticated desktop app in Python with PyQt5 as the widget set. Because my partner insists that all the kids these days love Python.
Piss on Python. And that goes double for PyQt5.
I’m on the absolute hardest section of the app. It’s a fairly complex import of data from PDF reports. There are so many different parts that I decided to go with a wizard.
So, I built a QWizard in Qt Designer. It generates a C++ .ui file, but you just truck it over to the command line and run this pyuic5 command, and it converts to a handy dandy Python class. Woo. You can subclass it and consume it from your Python script.
Sounded SO MUCH EASIER than writing the wizard from scratch. But OH NO. I need to do custom validation on my custom text control at every stage to control when the Next and Finish buttons are enabled, which means I gotta overwrite some damn event.
But I can’t. Because I can’t subclass the individual pages. Because they’re part of the same damn file and the wizard offers no access to them.
I’m almost certain that I’m going to have to completely redesign the wizard so that it’s pages are in separate files, which means I have to recode the bitch as well.
The cherry on top is that there’s zero documentation for this specific thing. None. No QWizard documentation exists for PyQt5 (if there is, they’re doing a damn good job of hiding it), so I have to read the documentation for PyQt4. Not the same animal. Close, but different. Even with the differences aside, this documentation is minimal and useless. “We’re going to tell you in very general terms what you should do, but we’ll give you zero idea how to do it. And we know the very common code method you’ll want to try first won’t work.”
And getting at this stuff when you do it in Qt Designer is WAY different. And all that documentation is in C++. Because apparently you HAVE to speak C++ if you want any real info about PyQt. Because that’s perfectly reasonable, right?
So, now I’ve lowered myself and posted a question on Stack. Because, hey, once you get past the power-tripping, mouth-breathing, basement-dwelling, neck-bearded high school punching bags picking apart your question rather than, I dunno..., BEING HELPFUL, sometimes you can get good info there. Sometimes. They seriously saved my ass at least one time.
But yeah. Fuck Python. Fuck everything Qt.17 -
Whole class: makes an sql database using phpmyadmin. Simple, easy, meets the requirements
Me: fuck it. Use python with pyqt5. And Microsoft sql server Spend unnecessary hours on making repetitive functions, cause my stupid ass can't figure out how to pass more than one parameters in class methods.
All in all, it looks good. I feel like I did something, learnt something new. Took on a challenge. Its a wierdly good feeling, somewhat rewarding.5 -
Presented my project at uni, teacher was pretty pleased and I'll get my grade some time next week, but for those that are interested, here's a small video of it in aciton:
https://youtu.be/LYV3bIC6QmU
Uses: Raspberry Pi 3B, Mifare RC522 RFID reader, a breadboard, ribbon cable, neopixel rgb led ring and a TowerPro sg90
For the ui I used PyQt5, almost got the threading completely working, there's only 1 blocking thing left, that's when the message for logging in doesn't disappear -
Writing a small program for my Pi, which has to have a gui, process rfid information and do some stuff with motors and leds.
Unfortunately I don't know c++, so I have to write this all in python.
Gui's in python are the ugliest pieces of shit ever. Even fucking c# winforms are prettier than them.
Currently using PyQt5 as it is the less ugly of the bunch but man, you'd think python would have a lot more ui options considering the love it receives...4 -
For chrissakes, the Stackasses on Stack Overflow have, in their typical fashion, downvoted my question instead of attempting to answer it.
I seriously need help with coding a PyQt5 wizard I made in Qt Designer. I’m so sick of fucking around with these idiots.
Can someone point me somewhere PRODUCTIVE where I might get some help? Looking at Experts Exchange and wondering if they have the necessary expertise. Getting to the point where I’m actually thinking of shelling out money. But I’d much rather just find a good online community or something.
TIA15 -
WHY does VS code load up Pandas dataframes so damn slowly? It’s bad enough that it seems to take an extra few seconds to get PyQt5 going, but the dataframes are awful, even with small 50 record Parquet files.
I don’t have the attention span to sit there and wait for this without finding myself playing with my phone or surfing.
I guess for debugging and testing I should just create a column A, column B, column C dataframe on the fly and give it some 1, 2, 3 kind of values.
But, Jesus, man... This shouldn’t take 30 seconds to load a simple form. 🙄2 -
Hie Dev to python and PyQt5 devs
Could you please help on a issue
I am working on a GUI app for converting UI to py
I've designed 2 more windows
And I need to hook them up
I am importing them
Link below:
https://github.com/TaqsBlaze/...
Please don't bite me for this -
I've started using PyQT5 and I'm surprised at how easy it's been so far.
Anyone familiar with it, and if so, what kind of obstacles I can expect to encounter making custom widgets and styling?6 -
Why, how, why oh why is the PyQt documentation so awful how and why do i find stuff in some random blog that wasnt in there at all not even mentioned nothing :((((3
-
I made a launcher for dungeons & dragons online.
to do that i had to re the login,server list and server queue to get it to launch
Then i added a gui using pyqt51 -
So I wasnt liking Kivy so I decided to get PyQt5 and I'm liking it but I feel like some of the studios widgets take a lot of programming out of the process and I feel like I'm cheating idk but it makes it a lot easier
-
One of my big gripes about PyQt5 in particular is lack of info, especially on advanced topics. This includes books. I found this on Amazon today:
Qt5 Python GUI Programming Cookbook: Building responsive and powerful cross-platform applications with PyQt https://amazon.com/dp/B079S4Q9T2/...
It was just published in July. I’m thinking I might buy the Kindle book.
On reviewer complained about lack of info on how to handle child dialogs (after fighting with child dialogs that had their own children and dialogs with threading and all that, I feel you, brother). But the 2 reviews it’s gotten look fairly positive.
I wonder how advanced the book gets. Going to read the sample later.4 -
So yeah I'm currently working with a small team on a project that will save our company around 1000 FTE (literally ~1000 people) costs per year.
But we forgot to do branches in our gitlab project... And now I needed to resolve a merge conflict on a PyQT UI file. Fuck my morning I need more coffee!1 -
Began learning PyQt5 a few months ago and noticed the rather "lack of online resources" as compared to Tkinter (which I had learnt earlier). Infact, multiple tutorials that showed up on the first result were actually for PyQt4.
Anyways, I made my own PyQt5 tutorial over the course of this month. This is the link to the main page for the tutorial.
https://coderslegacy.com/python/...
Still got a few things to add (like layout managers) but the main part is complete. Some feedback would be helpful! You can go head directly to a widget tutorial with this link.
https://coderslegacy.com/python/...3 -
PyQt5 combined with pyinstaller is a f*ckn impossible mission.... if a .ui file is used you an forget it completely