Page 283 - MDP2020-3
P. 283
················································································ 명장양성프로젝트 【MDP】 과제발표회 자료집 Ⅲ | 277
def faceWindow():
global cotSet, listFont, numsSFont
windowFrame = Toplevel(frame, bg=numsColor)
windowFrame.title("얼굴확인창")
windowFrame.overrideredirect(True)
windowFrame.geometry("1280x720+0+0")
faceNameLabel = Label(windowFrame, text="이름", font=numsSFont, bg=numsColor)
faceNameEntry = Entry(windowFrame, width=23, relief="solid", font=listFont)
faceNameEntry.place(x=50, y=70)
faceNameLabel.place(x=50, y=20)
def closeExecute():
windowFrame.quit()
windowFrame.destroy()
def running_picture(picName):
take_pictures(picName)
showListFrame = Frame(windowFrame, bg=barColor, width=100, height=720)
showListFrame.pack(side="right")
buttonExecute1 = Button(showListFrame, image=faceImage, command=lambda:
running_picture(str(faceNameEntry.get())),
bg=statusButtonColor)
buttonExecute1.place(x=15, y=535)
buttonExecuteClose = Button(showListFrame, image=exitImage,
command=closeExecute, bg=statusButtonColor)
buttonExecuteClose.place(x=15, y=635)
numsButton = Button(frameNums, text="리셋", font=mainFont, width=10, height=3,
command=resetTime)
exitImage = convTk(".\\img\\stop.png", 65, 65)
exitImage2 = convTk(".\\img\\stop2.png", 65, 65)
faceImage = convTk(".\\img\\face.png", 65, 65)
exitButton = Button(shOptionFrame, width=65, height=65, command=closeFrame,
image=exitImage, bg=barColor)