Hi all, What's a Pythonic way of parsing a set of flags, similar to how Qt does it.
E.g. layout.setAlignment(Qt.AlignTop | Qt.AlignLeft) Both AlignTop and AlignLeft seem to be hex numbers (docs here<http://qt-project.org/doc/qt-5.1/qtcore/qt.html>) that seem to get combined into a third number via the | operator. Where's the logic behind that and how can I derive such logic myself? Thanks, Marcus -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBUGHyG9vrny_BqWcdvcD3ezM-VHM_jNJYA70Rv4DTNug%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
