Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. from enum import Enum
  2. from PyQt5.QtCore import *
  3.  
  4. class Color(Enum):
  5. Qt.white = 0
  6. Qt.black = 1
  7. Qt.red = 2
  8. Qt.blue = 3
  9. Qt.yellow = 4
  10. Qt.green = 5
  11.  
  12. item.setBackground(Qt.black)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement