import tkinter as tk
top = tk.Tk()
top.title('窗口标题')
top.geometry("400x100+500+200")
top.winfo_screenwidth()
top.winfo_screenheight()
top.quit()
top.destroy()
top.overrideredirect(1)
top.attributes("-alpha", 0.8)
top.attributes('-fullscreen',1)
top.attributes('-topmost',1)
top.bell()
top.iconbitmap('logo.ico')
top.resizable(width=False, height=False)
top.state(newstate=None)
top.state('icon')
top.deiconify()
``
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200908204122710.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzI4NzEyMQ==,size_16,color_FFFFFF,t_70