Aivar
Aivar

Reputation: 7012

How to draw on tk.Text widget?

I need to draw rounded rectangles around some words in a tk.Text widget. How to do this? Is there some kind of Text's internal "canvas"?

Upvotes: 1

Views: 105

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 386000

You cannot do what you want; there is no internal canvas on which to draw.

You can highlight regions of text, and place a border around regions of text, but you can't draw on it.

Upvotes: 1

Related Questions