Porting enums from PyQT5 to PyQt6
patrickkidd at gmail.com
Thu Oct 20 17:59:05 BST 2022
OK, I'll check them out. Thanks!
On Wed, Oct 19, 2022 at 9:15 AM Florian Bruhin <me at the-compiler.org> wrote:
> On Tue, Oct 18, 2022 at 01:32:00PM -0800, Patrick Stinson wrote:
> > Just double checking here before I port a whole bunch of code.
> > It looks like Qt enums in PyQt6 now subclass python's `Enum` class - and
> > need to have the enum class name added whenever referencing enum values.
> > Correct?
> > For example: QFont.Medium
> > must become QFont.Weight.Medium
> > Or is there a way to avoid changing all references to Qt enum values
> > staying with good practices?
> There are at least three tools available to automate the changes:
> me at the-compiler.org | https://www.qutebrowser.org
> https://bruhin.software/ |
> GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
> I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt