[pygtk] Draw text over image
Rafael
rfsbsb at gmail.com
Wed Aug 6 04:22:02 WST 2008
On Tue, Aug 5, 2008 at 7:34 AM, A.T.Hofkamp <a.t.hofkamp em tue.nl> wrote:
> [Sorry Rafael, I pressed the 'send' button instead of cancel]
>
> Rafael wrote:
>
>> Hi,
>>
>> I have a question, and hope you could help me. I have a gtk.Image within a
>> eventbox. The image is resized when the containter is resized. I want to
>> write some text over this image and resize the text (proportional). My
>> text
>> is a pango layout.
>>
>
> Why don't you use a DrawingArea, and render the image and the text
> yourself?
>
>
>
> Albert
>
Hi Albert,
Thank you for your help. I've been playing with the drawingarea and finally
now I can do what I want. My problem, besides the wrong component, was on
using wrong events.
Thank you again.
--
Rafael Ferreira Silva - Web Developer
http://rafaelsilva.net
http://drupal-br.org
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080805/49cb37ad/attachment.htm
More information about the pygtk
mailing list