1
내 이미지와 내 제목을 표시하는 데 문제가 있습니다. 내 코드를 좁히고 제목이 어떻게 든 내 이미지를 덮어 썼다는 것을 알았습니다. 이 작업은 draw_handler 인 것으로 보입니다. 현재 코드는 제목 만 표시합니다. 그래서, 내 질문은 어떻게 표시합니까 모두 제목 화재 표범 소환 및 이미지?내 제목이 창 (파이썬)에서 내 이미지를 덮어 쓰고 있습니다.
import simplegui
title = 'Fire Emblem Summoning'
def Title(canvas):
canvas.draw_text(title, [40,50], 24, "Blue")
def draw_handler(canvas):
canvas.draw_image(image, (1440/2, 1354/2), (1440, 1354), (500, 225), (200, 200))
image = simplegui.load_image('http://cdn.idigitaltimes.com/sites/idigitaltimes.com/files/2017/02/03/fire-emblem-heroes-five-star-characters-legends.jpg')
frame = simplegui.create_frame('Fire Emblem Summoning', 1000, 400)
frame.set_draw_handler(draw_handler)
frame.start()
frame.set_draw_handler(Title)
frame.start()