def run(): global var var = something()for x in range(10): if x < 0: return from tkinter import * master = Tk() canvas_width = 2000 canvas_height = 1000 w = Canvas(master, width=canvas_width, height=canvas_height) w.pack() y = int(canvas_height / 2) # w.create_line(0, y, canvas_width, y, fill="#476042") # w.Label(0, y, canvas_width, y, text="Hello Tkinter!") w.create_text(y, y, text="Take your shot", font="Helvetica 115 bold") mainloop() run()
添加回答
举报
0/150
提交
取消