On 5/27/05, manatlan <[EMAIL PROTECTED]> wrote:
> I try to embed a HTTPServer in a pygtk app ...
> i've got trouble to give cycle/loops to the GUI
> i run my pygtk app, and add handle_request() from HTTPServer with
> gobject.idle_add() ...
> the http server seems to eat all the cycle/loop ... but replys well
> the GUI seems to be frozen ... the log of the server are displayed in
> a textview pygtk very well ... but i can't click a button or a
> checkbox ...
I'm not an expert, you can try pending_events [see FAQ in entry about
progressbar and doing sth useful with the UI too]

> i've tryed a thread version too, but it's not better, the gui responds
> well, but the httpserver never reply ...
That's strange. You can use pseudo-threads via generators which could
be simpler to catch logical bugs

> i don't know where to go, any ideas ? is there a simple way to give
> cycle/loop to the gui and to the http server ?
You can use input_add() to pass the socket that listens to the gtk mainloop
see FAQ entry again

Good Luck


-- 
Nikos Kouremenos | Jabber ID: [EMAIL PROTECTED] | http://members.hellug.gr/nkour
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to