-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPiPyDesktop.py
More file actions
32 lines (25 loc) · 776 Bytes
/
PiPyDesktop.py
File metadata and controls
32 lines (25 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import sys
from PyQt4 import QtGui
from PyQt4 import QtCore
from Clock import Clock
from Weather import Weather
class PiPyDesktop(QtGui.QWidget):
def __init__(self):
super(PiPyDesktop, self).__init__()
grid = QtGui.QGridLayout()
grid.setSpacing(10)
grid.addWidget(Clock(), 1, 0)
grid.addWidget(Weather(), 1, 1)
self.setLayout(grid)
self.setWindowTitle('PiPyDesktop')
self.setStyleSheet("background-color:black;")
self.setCursor(QtCore.Qt.BlankCursor)
def main():
app = QtGui.QApplication(sys.argv)
desktop = PiPyDesktop()
# desktop.show()
# desktop.resize(640, 480)
desktop.showFullScreen()
sys.exit(app.exec_())
if __name__ == '__main__':
main()