From a7145938ebe961fed8ea6cfff6055fcebe29d9ab Mon Sep 17 00:00:00 2001 From: roadfar <839377654@qq.com> Date: Thu, 17 Sep 2020 23:51:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6q?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- q - 副本.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 q - 副本.py 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()