import tkinter
import random

def click_btn():
    label['text'] = random.choice(['大吉', '中吉', '小吉', ' 凶 '])
    label.update()

root = tkinter.Tk()
root.title('抽籤遊戲')
root.resizable(False, False)
canvas = tkinter.Canvas(root, width = 800, height = 600)
canvas.pack()
gazou = tkinter.PhotoImage(file = 'images/miko.png')
canvas.create_image(400, 300, image = gazou)
label = tkinter.Label(root, text = '？？', font = ('Times New Roman', 120), bg = 'white')
label.place(x = 380, y = 60)
button = tkinter.Button(root, text = '抽籤', font = ('Times New Roman', 36), command = click_btn, fg = 'skyblue')
button.place(x = 360, y = 400)
root.mainloop()
