Skip to content

1.0.0.b5

Pre-release
Pre-release
Compare
Choose a tag to compare
@mottosso mottosso released this 27 May 22:28
· 523 commits to master since this release

Added support for binding constants.

import Qt

# Before
if Qt.__binding__ == "PyQt5":
  # Do PyQt5 things

# After
if Qt.IsPyQt5:
  # Do PyQt5 things

Which in addition to cutting down on typed characters also enables your IDE to detect potential misspellings. The previous method still exists and continues to work, there are no plans to deprecate it.

Thanks to @dgovil for this feature!