import time
import tkinter
import numpy as np
x=[1,2,3,1,2,3,1,2,3]
y=[1,1,1,2,2,2,3,3,3]
root = tkinter.Tk()
root.title("Software Title")
root.geometry("500x500")
canvas = tkinter.Canvas(root, width = 300, height = 350)
canvas.place(x=0, y=100)
mode=0
while mode<50:
time.sleep(0.99)
canvas.create_rectangle(0, 0, 300, 300, fill = 'green')
for i in range(9):
x1=100*x[i]-50
y1=100*y[i]-50
kk=["金","歩"]
k1=np.random.choice(kk)
canvas.create_text(x1, y1,font=("",50), text = k1)
canvas.pack()
canvas.update()
root.mainloop()
最終更新:2018年02月03日 07:27