-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRPBO.py
45 lines (30 loc) · 954 Bytes
/
RPBO.py
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
33
34
35
36
37
38
39
40
41
42
43
44
45
import pygame
from Tkinter import *
'''
class MainApp():
width, height = 640, 480
screen = pygame.display.set_mode((width,height))
MainApp()
class MainApp():
app = Tk()
app.title("Raspberry Pi Bake-Off")
app.geometry('640x480')
app.mainloop()
def quitApp():
app.destroy()
quitButton = Button(app,text = "quit", width = 10, commmand = quitApp)
quitButton.pack(size = 'left')
'''
app = Tk()
app.title("Raspberry Pi Bake-Off")
app.geometry('640x480')
def quitApp():
app.destroy()
quitButton = Button(app, text = 'quit', width = 10, command = quitApp)
quitButton.pack()
questionFrame = Canvas(app,width=640,height = 300, background = 'blue')
questionFrame.pack(side = 'bottom')
Label(questionFrame,text =" Questions?", font = ("Times",32)).pack(side = 'top')
Label(questionFrame,text = "Baloons", font = ("Times",16)).pack(side = 'bottom')
#Label(questionFrame).grid(sticky = W)
app.mainloop()