I am trying to write a program that displays a scrollable text widget over a striped background. The width of the stripes, the spacing between stripes, and the color of the stripes can be set by the user.
Here is a quick and dirty example of what I'm imagining:
(It might seem like an ugly and pointless program, but it would be useful as a therapy tool for certain kinds of eye problems)
My original idea was to draw the stripes as rectangles on a canvas widget. Then I planned on overlaying the canvas with a text widget with a transparent background.
Right now, I am using Tkinter. But it appears that the text widget in Tkinter doesn't support transparency or using a canvas as a background. It appears that only a solid color can be used as a background.
What GUI toolkits are available for Python that would support the use of text widget background transparency / or a text widget that uses a canvas as a background?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…