1 from PyQt4.QtGui import QApplication, QFrame, QPalette, QLabel, QPixmap
2 from PyQt4.QtCore import Qt, QRect, SIGNAL, QCoreApplication
3
4
6
8 super(BareFrame, self).__init__(parent)
9 self.setWindowFlags(Qt.FramelessWindowHint)
10 self.setFrameShadow(QFrame.Plain)
11 self.setFrameShape(QFrame.Box)
12 self.setLineWidth(1)
13
15 pal = QCoreApplication.instance().palette()
16 pal.setColor(QPalette.Window, color)
17 self.setPalette(pal)
18
19
41
42
54
55
56 if __name__ == '__main__':
57 import sys
58 app = QApplication(sys.argv)
59 board = Dashboard()
60 board.show()
61 sys.exit(app.exec_())
62