我正在尝试在街机 python 中显示图像,为什么它不起作用?

I'm trying to display an image in arcade python, why is it not working?

width = 1400
height = 950
arcade_title = "r/pics"

arcade.open_window(width, height, arcade_title)

arcade.set_background_color(arcade.color.WHITE)
img = arcade.load_texture('google.jpeg')
arcade.draw_texture_rectangle (700, 475, 700, 700, img)

arcade.start_render()

arcade.finish_render()

arcade.run()

这是我的代码。当我 运行 它没有显示图像。 window 保持白色。

快速编辑对我有用(正如我在评论中所述):

width = 1400
height = 950
arcade_title = "r/pics"

arcade.open_window(width, height, arcade_title)

arcade.start_render()

arcade.set_background_color(arcade.color.WHITE)
img = arcade.load_texture('google.jpeg')
arcade.draw_texture_rectangle (700, 475, 700, 700, img)

arcade.finish_render()

arcade.run()