[pygtk] Updating image without closing window
Nathan Samson
nathansamson at gmail.com
Fri Aug 7 18:13:36 WST 2009
Normally if you call da.queue_draw() (
http://www.pygtk.org/docs/pygtk/class-gtkwidget.html#method-gtkwidget--queue-draw)
the widget will receive the expose event (and redraw itself) without manual
intervention
On Fri, Aug 7, 2009 at 05:44, DINESHBABU DINAKARABABU
<dinesh243 at gmail.com>wrote:
> Is there anyway we can simulate the key-press-event??
> Or in other words, is there anyway we can call the gtk.main_quit() and then
> "destroy" the window by just setting a flag once the image gets displayed,
> without actually waiting for a key to be pressed??
>
> Thanks again for the suggestions. I really appreciate you taking the time
> to answer the questions. This has been really helpful.
>
> Thanks a lot.
>
> On Thu, Aug 6, 2009 at 2:06 AM, A.T.Hofkamp <a.t.hofkamp at tue.nl> wrote:
>
>> DINESHBABU DINAKARABABU wrote:
>>
>>> Hi,
>>>
>>> I tried it. But, I need to do a key press for closing the first image and
>>>
>> view the next image and so on. I am on the lookout for some method which
>> opens
>> and displays the first image, once the pixbuf gets updated, the first
>> image
>> closes and gets replaced by the next image and so on. I need successive
>> display of images with the pixbuf updating without any manual
>> intervention.
>>
>> Capture key-press events, and load the new picture from the socket when
>> you receive a key-press event.
>>
>
>
>
> --
> Cheers
> DB
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
--
http://www.nathansamson.be
To understand recursion, you must first understand recursion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090807/480db179/attachment.htm
More information about the pygtk
mailing list