>
> ---------- Forwarded message ----------
> From: Timo <timomli...@gmail.com>
> To: pygtk@daa.com.au
> Date: Sat, 30 Apr 2011 11:10:56 +0200
> Subject: Re: [pygtk] Grid of Clickable Images
> On 29-04-11 21:06, Shrihari Sankaran wrote:
>
>> Hello,
>>
>> I'm fairly new to PyGTK. Just getting started. I've worked with wxPython
>> in the past. I'm trying to create a grid of clickable images. Like this one:
>> http://getmoviemonkey.com/img/screen1.jpg
>>
>> I managed to get the image grid using IconView. But, i need to do a little
>> more:
>> 1) I don't want the blue high-light
>>
> Looking at the reference manual [1], this could be possible with style
> property "selection-box-color".

I checked that property earlier. It said read-only. How do i change its
value ?



 2) I want the cursor to be "pointer" whenever the mouse if over an image
>>
> I don't know about this one. But you could connect to the
> motion-notify-event [2] of the iconview, there get the (x,y) coordinates of
> the mousepointer. Check if there is an image at that position with
> iconview.get_item_at_pos(x, y) [3], and if so, change the cursor with
> gtk.gdk.Cursor [4]. See the FAQ [5] for an example how.

That worked like a charm :) Thanks.


>
>  3) I want to catch and respond to single clicks on images. I guess this
>> can be achieved by capturing the "selection-changed" event.
>>
> That seems like the best choice to me too.
>
Okay :)
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to