[pygtk] g_source_add equivalent
James Henstridge
james@daa.com.au
Tue, 21 Nov 2000 10:39:29 +0800 (WST)
On Mon, 20 Nov 2000, Alexandre Fayolle wrote:
> Hello,
>
> I need to monitor a server socket from within a pygtk application. glib
> has a g_source_add() function that would suit my needs. Is there some way
> to access this function from pygtk?
>
> If not, what would you suggest as an alternative. Monitoring the socket in
> another thread can't be done because this won't work on win32 for some
> obscure reason. I could also add a timeout and poll from the
> socket, but I'd rather not if I can avoid it.
Use the input_add function. It should do what you want.
James.