this post was submitted on 18 Jul 2023
5 points (100.0% liked)

Linux

8921 readers
279 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

Hey all!

I made this color picker using PyQt5 mainly because I was missing a decent & minimal magnifying coloring picking tool. I've been quite pleased with it so far, so I thought I'd publish it on github for anyone that might be looking for the same thing I was.

Hope you like it :)

you are viewing a single comment's thread
view the rest of the comments
[–] bisby 2 points 2 years ago (2 children)

I'm very unfamiliar with QT (and thus the python QT lib)...

But I had to change QTimer to import from QtCore, and Qpainter from QtGui for my local PyQT5 (from Arch repos).

This looks/works great but now I'm just a bit curious about why classes are in different places in different versions of pyqt5

[–] liferose 1 points 2 years ago (1 children)

QTimer

Thanks for having a look!

Turns out my imports where, according to the documentation anyway, wrong. Honestly I am not sure why the imports where working on my machine, something something python I guess.. I looked at the Qt documentation, changed all the imports to their correct libraries and pushed the changes.

[–] bisby 1 points 2 years ago

Awesome! Latest main works with no modifications needed now!

I've actually had a few times recently where I really wanted a color picker and just shrugged it off assuming it would be a hassle, or inconvenient to use. So thanks a ton for sharing.