QupyRibbon
QupyRibbon copied to clipboard
fix issues and apply linting
Hi there,
I wanted to see this working but needed to fix some issues first.
At some places a float was used as the argument for the functions setMaximumHeight
, setMinimumHeight
and setIconSize
. These now need to be int's. So wrapped them in int()
's. Furthermore I sorted all imports and applied linting using ruff
and black
. I used a max line length to 100 characters.
With this pull request I hope to make your module easier to use for other people using newer versions of PyQt.
Please let me know if something isn't to your liking :)
Yes its been a while since i made this. I've recently ported it to PyQt6 in another project and there i was forced to also type cast to int. I've moved most of my work to gitlab though. here I haven't committed my upgrade to pyqt6. But i will.