Dirk Meyer wrote:
> Jason Tackaberry wrote:
>> I checked in some big updates to kaa.display.  Most of the X11 display
>> code has been rewritten from scratch.  There's now a separate X11Display
>> class, as well as X11Window.  It supports imlib2 (via
>> X11Window.render_imlib2_image) and also evas, via the EvasWindow class.
>> (kaa.evas isn't checked in yet, probably tomorrow.)
>>
>> So you should have something like this ...
>>
>>         from kaa import imlib2, display
>>         from select import select
>>         
>>         win = display.X11Window(size = (800,600), title = "Testing")
>>         win.show()
>>         img = imlib2.open("foobar.png")
>>         win.render_imlib2_image(img)
>>         while True:
>>            if select([win.get_display().socket], [], [], 1)[0] != []:
>>               win.get_display().handle_events()
>
> More or less, kaa.notifier is doing the select for us. So it is more
>           kaa.notifier.addSocket(win.get_display().socket, 
>                        win.get_display().handle_events)
>           kaa.notifier.loop()

OK, I was wrong, Freevo didn't work. The expose stuff wasn't in
display and all the input handling also was broken. Now it works. I
added kaa.notifier support in kaa.display to register the socket and
now the handle_events function gets called. I also added a callback
for expose events and connected it to kaa.mevas imlib2 display. 


Dischi

-- 
Time is a drug.  Too much of it kills you.
  -- in Small Gods (Terry Pratchett)

Attachment: pgpRzOsxFrWwN.pgp
Description: PGP signature

Reply via email to