from guizero import App, PushButton, Text
import time

def led_on():
    state.value = "LED ON"

def led_off():
    state.value = "LED OFF"

app = App(title="Group Assignment - Week 15", width=350, height=200)
app.bg = "lightblue"

Text(app, text="LED Control", size=20)

button1 = PushButton(app, text="LED On", command=led_on, width=20)
button1.bg = "green"
button2 = PushButton(app, text="LED Off", command=led_off, width=20)
button2.bg = "red"

state = Text(app, text="LED State")

app.display()