資源簡介
能在前端生成屏幕水印,不影響用戶操作別的軟件
代碼片段和文件信息
import?tkinter?win32api?win32con?pywintypes
def?get_replicate_text(text):
ispacestr1str2?=?070““““
while?(i?<=?5):
str1?=?str1?+?text?+?“?“*space
i?=?i?+?1
str2?=?“?“*space?+?str1?+?“\n\n\n\n“
str1?=?str1?+?“\n\n\n\n“
str1?=?(str1?+?str2)?*?5
return?str1
mytext?=?get_replicate_text(‘KK?筆記‘)
root?=?tkinter.Tk()?
width?=?win32api.GetSystemMetrics(0)
height?=?win32api.GetSystemMetrics(1)
root.overrideredirect(True)?#隱藏顯示框
root.geometry(“+0+0“)?#設置窗口位置或大小
root.lift()?#置頂層
root.wm_attribute
- 上一篇:python發送gmail郵件demo
- 下一篇:python 畫星星(滿天星)
評論
共有 條評論