我无法显示我的图像和标题。我缩小了代码范围,发现标题以某种方式覆盖了我的图像。似乎是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()