Page 383 - MDP2020-3
P. 383
················································································ 명장양성프로젝트 【MDP】 과제발표회 자료집 Ⅲ | 377
showListFrame = Frame(listWindow, bg=barColor, width=100, height=720)
showListFrame.pack(side="right")
buttonExecuteClose = Button(showListFrame, image=exitImage,
command=closeExecute2, bg=statusButtonColor)
buttonExecuteClose.place(x=15, y=635)
listButtonExtra = Button(showListFrame, width=65, height=65, bg=barColor,
image=listImage, command=listTimeAll)
listButtonExtra.place(x=15, y=540)
def ledWindow():
global imageLedOn, imageLedOff, ledNums
ledFrame = Toplevel(frame, bg=numsColor)
ledFrame.title("전구확인창")
ledFrame.overrideredirect(True)
ledFrame.geometry("1280x720+0+0")
ledFLabel = Label(ledFrame, image=imageLedOff, bg=numsColor)
ledSLabel = Label(ledFrame, image=imageLedOff, bg=numsColor)
ledTLabel = Label(ledFrame, image=imageLedOff, bg=numsColor)
ledFOLabel = Label(ledFrame, image=imageLedOff, bg=numsColor)
ledFILabel = Label(ledFrame, image=imageLedOff, bg=numsColor)
ledFLabel.place(x=30, y=150)
ledSLabel.place(x=255, y=380)
ledTLabel.place(x=500, y=150)
ledFOLabel.place(x=735, y=380)
ledFILabel.place(x=980, y=150)
def changeLED():
if ledNums[0]:
ledFLabel.config(image=imageLedOn)
else:
ledFLabel.config(image=imageLedOff)
if ledNums[1]:
ledSLabel.config(image=imageLedOn)
else:
ledSLabel.config(image=imageLedOff)
if ledNums[2]: