-
Notifications
You must be signed in to change notification settings - Fork 0
/
autis.py
1 lines (1 loc) · 2.34 KB
/
autis.py
1
[globals().update({"data": open("./ciarovy_kod_1.txt", "r").read().split("\n")}),globals().update({"cur_index": -4})]+[globals().update({"root" : __import__("tkinter").Tk()})]+[root.title("Pome")]+[globals().update({"canvas":__import__("tkinter").Canvas(root, width="500", height="500")})]+[canvas.pack()]+[root.bind("<space>",lambda event: [globals().update({"cur_index":cur_index+4})]+[globals().update({"cur_index":len(data)-4}) if cur_index+4>=len(data) else ""]+[canvas.delete("all"),[globals().update({"x":10}),globals().update({"code":(data[cur_index:cur_index+1])[0]}),globals().update({"y":10})]+[canvas.create_text(globals()["x"]+35,globals()["y"]+60,text=globals()["code"])]+[[canvas.create_line(globals()["x"],globals()["y"],globals()["x"],globals()["y"]+50 if ind not in [0,len(globals()["code"])-1] else globals()["y"]+70,width=int(globals()["code"][ind])),globals().update({"x": globals()["x"]+10})] for ind in range(0,len(globals()["code"]))],[globals().update({"x":100}),globals().update({"code":(data[cur_index+1:cur_index+2])[0]}),globals().update({"y":10})]+[canvas.create_text(globals()["x"]+35,globals()["y"]+60,text=globals()["code"])]+[[canvas.create_line(globals()["x"],globals()["y"],globals()["x"],globals()["y"]+50 if ind not in [0,len(globals()["code"])-1] else globals()["y"]+70,width=int(globals()["code"][ind])),globals().update({"x": globals()["x"]+10})] for ind in range(0,len(globals()["code"]))],[globals().update({"x":10}),globals().update({"code":(data[cur_index+2:cur_index+3])[0]}),globals().update({"y":100})]+[canvas.create_text(globals()["x"]+35,globals()["y"]+60,text=globals()["code"])]+[[canvas.create_line(globals()["x"],globals()["y"],globals()["x"],globals()["y"]+50 if ind not in [0,len(globals()["code"])-1] else globals()["y"]+70,width=int(globals()["code"][ind])),globals().update({"x": globals()["x"]+10})] for ind in range(0,len(globals()["code"]))],[globals().update({"x":100}),globals().update({"code":(data[cur_index+3:cur_index+4])[0]}),globals().update({"y":100})]+[canvas.create_text(globals()["x"]+35,globals()["y"]+60,text=globals()["code"])]+[[canvas.create_line(globals()["x"],globals()["y"],globals()["x"],globals()["y"]+50 if ind not in [0,len(globals()["code"])-1] else globals()["y"]+70,width=int(globals()["code"][ind])),globals().update({"x": globals()["x"]+10})] for ind in range(0,len(globals()["code"]))]])]+[root.mainloop()]