from tkinter import *
master = Tk()
w = Canvas(master, width=40, height=60)
w.pack()
canvas_height=20
canvas_width=200
y = int(canvas_height / 2)
w.create_line(0, y, canvas_width, y )
mainloop()
from tkinter import *
window = Tk()
window.title("Password Manager")
window.config(padx=50, pady=50)
#Image
canvas = Canvas(width=200, height=200)
logo_img = PhotoImage()
canvas.create_image(100, 100)
canvas.grid(row=0, column=1)
window.mainloop()
w = Canvas(master, option=value)