# -*- coding: utf-8 -*-
"""
Created on Wed Dec 11 22:37:30 2019
@author: Dell
"""
import tkinter

win = tkinter.Tk()

#显示图片
photo = tkinter.PhotoImage(file=r"C:\Users\Dell\Pictures\董香2.png")
label = tkinter.Label(win, text="少儿不宜", image=photo)
label.pack()

#设置字体颜色大小等
lbl = tkinter.Label(win, text="Hello 中国", font=("华文彩云", 100), fg="red", bg="black")
lbl.pack()

win.mainloop()

相关文章:

  • 2021-12-13
  • 2022-02-10
  • 2022-01-09
  • 2021-10-16
  • 2022-12-23
  • 2021-11-26
  • 2021-08-14
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2021-05-23
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
相关资源
相似解决方案