[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Updated PyQt Documents - Feedback Please
From:       Detlev Offenbach <detlev () die-offenbachs ! de>
Date:       2018-09-29 10:30:46
Message-ID: 2971546.cLNo0fKP99 () neptun ! solsys ! priv
[Download RAW message or body]

Hi,

while talking about enums. I would like to know, if anybody is about (or has 
done so) develop a tool to migrate old code to the new enum handling (maybe as 
a preparatory step for PyQt6).

Detlev

Am Freitag, 28. September 2018, 23:48:45 CEST schrieb David Cortesi:
> The section on enums [0] needs two things. One, it badly needs to
> distinguish the relationship (or explicitly deny any relationship) to
> Python Enums [1]. The person who knows Python but little C++ might
> naturally expect to do settings.value('flag', type=IntEnum) (and indeed why
> not?)
> 
> Two, a little example code would be a big help. What is the syntax for
> "specifying the scope of the enum"?
> 
> [0] https://pyqt.readthedocs.io/en/latest/gotchas.html#enums
> 
> [1] https://docs.python.org/3.6/library/enum.html

-- 
Detlev Offenbach
detlev@die-offenbachs.de


_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic