commit 3c6dd6a214f4fff41f960cdd6f87f59de8d2bbe2 Author: roadfar <839377654@qq.com> Date: Thu Sep 17 23:46:53 2020 +0800 撒发顺丰 diff --git a/q.py b/q.py new file mode 100644 index 0000000..f303faf --- /dev/null +++ b/q.py @@ -0,0 +1,10 @@ +import tkinter as tk + +root = tk.Tk() +photo = tk.PhotoImage(file='images\\BJoker.gif') #创建一个图片对象 +textLabel = tk.Label(root, + text='一张牌', + justify = LEFT, #定义多行文本如何对齐。可取值有:LEFT, RIGHT, 或 CENTER + image=photo) #设置标签图片 +textLabel.pack() +root.mainloop()