Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from enum import Enum
- from PyQt5.QtCore import *
- class Color(Enum):
- Qt.white = 0
- Qt.black = 1
- Qt.red = 2
- Qt.blue = 3
- Qt.yellow = 4
- Qt.green = 5
- item.setBackground(Qt.black)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement