![](/img/trans.png)
[英]Python-Tkinter:how to highlight item on taskbar on windows xp when window is minimized to the taskbar
[英]Python Tkinter: How to disable window showing in taskbar?
我正在编写一个应用程序在屏幕上显示一个标签。 我希望它在任务栏中不可见。 它适用于 Windows 7。我使用的是 Python 3.8.1
代码:
# -*- coding: UTF-8 -*-
from tkinter import *
from PIL import Image
from PIL import ImageTk as itk
import time
from threading import Thread
import random
root = Tk()
width = 400
height = 400
lbl_deneme = Label(root, text = 'Test')
#lbl_deneme.place(x = 25, y = 25, anchor = 'center')
lbl_deneme.pack(side=TOP, expand=YES, fill=BOTH)
root.attributes('-transparentcolor', root['bg'])
root.call('wm', 'attributes', '.', '-topmost', '1')
root.attributes("-fullscreen", True)
root.title('Başlık')
root.mainloop()
我找到了代码来做到这一点。 我了解到我只需要禁用 Windows 默认框架。
代码:
root.overrideredirect(True)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.