Skip to main content


Python Tkinter Trick - Writing text on desktop screen using Python Tkinter

tkinter

This simple trick with tkinter will help you to type text on your desktop.


Here is the code:-

import tkinter as tk

def text(n):
       label = tk.Label(text=(str(n)), font="Forte 150", fg='black', bg='white')
       label.master.overrideredirect(True)
       label.master.geometry("+512+312")
       label.master.lift()
       label.master.wm_attributes("-topmost",True)
       label.master.wm_attributes("-disabled",True)
       label.master.wm_attributes("-transparentcolor","white")
       label.after(1000 , label.master.destroy)
       label.pack()
       
Hope you like the tutorial.

Python is simple and fun to play with and yet very powerful. 🔥


🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍

Popular Posts

Python underline string, Python underline text, Underline python print

Python pip - Installing modules from IDLE (Pyton GUI) for python 3.7

Top 40 Python - String Processing in Python | Working with String in Python

Top 11 Essential Python Tips and Tricks

Python Program - When was I born? / Date of Birth / MY BIRTHDAY (using Python3+)





Subscribe to our Channel


Follow us on Facebook Page

Join our python facebook groups



Join us on Telegram