[pygtk] Multi gtk.EventBox and gtk.Image cause artefacts

Neil Dugan pygtk at butterflystitches.com.au
Tue Jan 27 23:15:06 WST 2009


MATTHIEU CADET wrote:
> According to my problem with gtkEventBox, i've only one solution i think....
> there is a way to force refresh all windows and widgets ? maybe my problem
> is a display bug or maybe i have too much gtkEventBox with gtkImage .
> 
> Please if someone have any solution for me.
> 


I found a C example on how to put a .png image in a cairo widget
http://zetcode.com/tutorials/cairographicstutorial/cairoimages/

Here is a python script.


> 
> 
> From: maty974 at hotmail.com
> To: pygtk at butterflystitches.com.au
> Date: Mon, 26 Jan 2009 19:36:23 +0900
> CC: pygtk at daa.com.au
> Subject: Re: [pygtk] Multi gtk.EventBox and gtk.Image  cause artefacts
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hi,
> 
> I've try to replace gtkEventBox with a gtkButton, but it's the 
> same problem...
> At a certain number of button are showed the button is not
> clickable :(
> 
> Maybe it's another problem with the main Window or may i need
> to refresh; redraw or something like that ?
> 
> Or maybe it's not possible with gtk to show lot of gtkEventBox,
> there is a limit on the EventBox ? or something related to the 
> Window ?
> 
> 
> 
> From: maty974 at hotmail.com
> To: pygtk at butterflystitches.com.au
> Date: Sat, 24 Jan 2009 19:16:17 +0900
> CC: pygtk at daa.com.au
> Subject: Re: [pygtk] Multi gtk.EventBox and gtk.Image  cause artefacts
> 
> 
> 
> 
> 
> 
> 
> 
> Hi,
> 
> No i haven't try this solution, but i don't want my image looks like
> a button, with the style of button you know rounded, and when you
> see the image as a button.
> Or maybe i can set a button style to "none" ? without the looks of 
> a button.
> 
> I will try this, thanks for your answer.
> 
> Maty.
> 
> 
> 
>> Date: Sat, 24 Jan 2009 13:48:42 +1100
>> From: pygtk at butterflystitches.com.au
>> To: maty974 at hotmail.com
>> CC: pygtk at daa.com.au
>> Subject: Re: [pygtk] Multi gtk.EventBox and gtk.Image  cause artefacts
>>
>> MATTHIEU CADET wrote:
>>> I've found a solution to remove those artefacts, but the solution is to 
>>> don't use gtk.EventBox and just use gtk.Image... 
>>>
>>> But for the moment its not very good for me because i need to keep
>>> the image as "clickable" so i can get informations of wich image is 
>>> clicked.
>>>
>>> Any help for this please?
>>>
>>> Thanks.
>>>
>>> Maty.
>>>
>>>
>>>
>>> From: maty974 at hotmail.com
>>> To: pygtk at daa.com.au
>>> Date: Tue, 20 Jan 2009 19:54:44 +0900
>>> Subject: [pygtk]  Multi gtk.EventBox and gtk.Image  cause artefacts
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Hi everybody!
>>>
>>> I'm trying to write a tool in PyGtk that shows user lot of images in a Window,
>>> each images must be "clickable", so i've put all of them into a gtk.EventBox.
>>>
>>> The problem now for me is, when the number of images is more than about 45
>>> EventBox shown in the main Window, i got some strange artefacts near to the
>>> last image has been show.
>>>
>>> How can i fix those artefacts from EventBox ? and keep my images clickable ?
>>>
>>> Here the link to my code;glade and image :
>>>
>>> http://www.filefactory.com/file/a02c6df/n/multi_eventbox_example_zip
>>>
>>> Please if someone can help me on this.
>>>
>>>
>>> Thanks a lot.
>>>
>>> Maty.
>>>
>> Have you tried making each image a button with the image inside the 
>> button?
>>
>>
>>
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cairo_png
Url: http://www.daa.com.au/pipermail/pygtk/attachments/20090128/b613fd35/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apple-red.png
Type: image/png
Size: 3545 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20090128/b613fd35/attachment-0001.png 


More information about the pygtk mailing list