Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- canvas = Canvas(root)
- def system(system_name, position_x, position_y):
- Button(root, text = system_name).place(x=position_x, y=position_y, width=60, height=20)
- # examples :
- system("Location1", 10,10)
- system("Location2", 50,50)
- canvas.grid()
- root.mainloop()
- def line(system1, system2):
- system1 = center position of system1 = (a,b)
- system2 = center position of system2 = (c,d)
- canvas.create_line((a,b),(c,d))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement