[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Event loop
From:       Toby Sargeant <Toby.Sargeant () fulcrum ! com ! au>
Date:       1999-11-21 23:01:04
[Download RAW message or body]

On Fri, Nov 19, 1999 at 11:55:04AM -0500, Pete Ware wrote:
> I was curious how the Qt event loop works in relation to Python.  
> 
> I'd like to do the following:
> The first is I'd like to get access to any unhandled exceptions.  The
> second is I'd like to add a file descriptor (from a pipe) into the
> event loop as well.
> 
> Any suggestions?

The answer to your second question is to use QSocketNotifier.

QSocketNotifier is misnamed; on unix at least, it's useable with _any_
filedescriptior, which you can get at with the .fileno() method on any python
file object.

Toby.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic