Hi

You could use canvas to achieve this as per attached snippet.

Regards

Paul Malherbe

On 26/05/2016 07:32, Dudi Goldenberg wrote:

Hi Kevin and Hexamorph,

 

I understand your point.

 

The choice of Python was done for its good and easy support for my hardware (BeagleBone Black).

 

While the project functionality is complete, I am now facing the need to display small amount (3-5 strings) on the desktop as I explained in previous posts.

 

During my tests using many examples for various sources, I had the text displayed in a borderless/title-less window, if only I could make the background transparent, I could use this.

 

If there is no solution using Python – I’ll search for a solution to this in any other language and incorporate it in my Python source.

 

I just got Hexamorph’s reply – I’m off to dig into the option, I am on Debian 7 with openbox WM.

 

Thanks & Regards,

 

D.

 

From: Tkinter-discuss [mailto:tkinter-discuss-bounces+dudi=kolcore....@python.org] On Behalf Of Kevin Walzer
Sent: Thursday, May 26, 2016 5:23
To: tkinter-discuss@python.org
Subject: Re: [Tkinter-discuss] Add text to desktop

 

On 5/25/16 7:31 PM, Dudi Goldenberg wrote:

Is there another method/module/anything that makes this possible??


Your previous question asked if there was a way to do this without windows--that is absurd since drawing in and displaying windows is all Tkinter does.

There may be ways to display text in the manner you describe in a borderless window, but as far as doing so without a window, no.

-- 
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com


_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss


import Tkinter as tk
import ttk
from PIL import Image, ImageTk

root = tk.Tk()
pilimg = Image.open("Untitled.png")
rimage = pilimg.resize((800, 600), Image.ANTIALIAS)
fimage = ImageTk.PhotoImage(image=rimage)
cnv = tk.Canvas(root)
cnv.create_image(0, 0, image=fimage, anchor="nw", tags="img")
cnv.create_text(200, 100, text="HELLO BABY", font=("Arial", 20, "bold"))
cnv.pack(side="left", fill="both", expand="yes")
root.mainloop()
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to