Painting over an old text with "transparent black" (or any
transparent color, in fact) to make sure it is removed from
the screen is the right way to go. Maybe did you just forget
to set the context blend state right before calling the
fill_rectangle()
operation?
adesklets.context_set_blend(False)
It is needed because a fully transparent color will of course
be applied by default relative to its alpha weight, wich is
none. :-)
If you want to see a working example of this, just try out
the
test/widgets.py example
from base package.
I guess you will need the ability to printout multi-lines
strings? You might want to have a look at
torsmotoy regarding this, since the
TorsmoString class from
torsmotoy.py implements
this.
Finally, it seems to me that what you are planning to do is
in essence very similar to
this (read the whole thread). What do
you think?