【发布时间】:2015-01-04 21:32:03
【问题描述】:
我正在尝试制作一个脚本,该脚本将在 python GUI 中的图像上绘制线条。我已经能够在 GUI 上获得图像,但不知道如何绘制附加线。脚本应该可以循环,这样我就可以画更多的线了。
到目前为止我所拥有的:
import tkinter as Tk
root = Tk.Tk()
background_image=Tk.PhotoImage(file="map.png")
background_label = Tk.Label(root, image=background_image)
background_label.place(x=0, y=0, relwidth=1, relheight=1)
root.wm_geometry("794x370")
root.title('Map')
root.mainloop()
【问题讨论】:
标签: python tkinter python-3.4 tkinter-canvas