Python and JabberCOM

Mark Hammond MarkH at
Thu Feb 8 22:41:35 CET 2001

John Sands wrote:

>     jabber.DoConnect(0 , 0)
>     pythoncom.PumpWaitingMessages()
>     win32api.Sleep(10000)
>     print jabber.Active

I am guessing this is your problem - you probably need a "real" message loop.

Try changing it to something like:

jabber.DoConnect(0 , 0)
while not done:

print jabber.Active

And have your event handler set "done" to 1 when something interesting happens.  If this works, mail me and we can work out a more appropriate way than a hard-loop pumping these messages.


More information about the Python-list mailing list