You can using the input_add() function.  It allows you to register a
callback to be called whenever data is available to read/write (depending
on the flags you pass to input_add()) on the file descriptor.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Mon, 21 Jun 1999, Fred L. Drake wrote:

> 
>   Is there a way to add file descriptors to the main loop, as there is 
> in Tk?  I'd like to be able to get callbacks when a file descriptor is 
> ready for reading (such as on created via os.popen()).
>   Is this possible with gtk+?  Is there a Python example of this?
>   Thanks!
> 
> 
>   -Fred
> 
> --
> Fred L. Drake, Jr.           <[EMAIL PROTECTED]>
> Corporation for National Research Initiatives
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to