import tkinter as tk def draw(canvas,width,height): canvas.create_rectangle(0,0,150,150,fill="blue") def runDrawing(width=300,height=300): window=tk.Tk() canvas=tk.Canvas(window,width=width, height=height) canvas.pack() draw(canvas,width,height) window.mainloop() print("Bye")