from tkinter import *

window = Tk()
window.iconbitmap("logo.ico")

window.mainloop()