在图像上添加文字

时间:2014-12-15 18:17:47

标签: python-3.x tkinter

如何在图像上添加文字? 我目前的设置是:

from tkinter import *


def First():
    a1 = Tk()
    a1.title("Christmas")
    a1.geometry("800x600")
    a1["bg"] = "white"


    hello = Label(a1, text = "Merry Christmas!", font = "Times 40 bold", fg = "Firebrick", bg = "white")
    hello.pack()

    cpic = PhotoImage(file = "Christmas.png")


    a1.mainloop()

First()    

如果是这样,那么我没有看到一张图片,我想要包含在这里 - >它消失了,但文字显示出来了。

0 个答案:

没有答案
相关问题