From anonymous, 1 Month ago, written in Plain Text.
Embed
  1.  
  2. In [1]: from PyQt6.QtCore import Qt
  3.  
  4. In [2]: Qt.Orientation.Horizontal | Qt.Orientation.Vertical
  5. Out[2]: <Orientation.Vertical|Horizontal: 3>
  6.  
  7. In [3]: Qt.GlobalColor.white | Qt.GlobalColor.red
  8. ---------------------------------------------------------------------------
  9. TypeError                                 Traceback (most recent call last)
  10. <ipython-input-3-0e4018aa95a1> in <module>
  11. ----> 1 Qt.GlobalColor.white | Qt.GlobalColor.red
  12.  
  13. TypeError: unsupported operand type(s) for |: 'GlobalColor' and 'GlobalColor'
  14.