from Punkt import Punkt from tkinter import * master = Tk() w = Canvas(master, width=200, height=100) w.pack() p1=Punkt() p1.juhuslikKoht(50, 200); p1.joonista(w) mainloop()