[Twisted-Python] Re: win32guireactor

Thomas Heller theller at python.net
Wed Apr 2 05:15:35 EST 2003

Thomas Heller <theller at python.net> writes:

> Here's my win32guireactor code, which at least for me, works better
> than win32eventreactor in my application.

Just in case this code is used by anyone, I just fixed two bugs.


>     def __wm_timerevent(self, hwnd, msg, wParam, lParam):
>         # This method is called if the message window receives
>         # timer events
>         user32.KillTimer(hwnd, wParam)
>         tple = self.timers[wParam]
        del self.timers[wParam]
>         tple.func(*tple.args, **tple.kw)

>     def _cancelCallLater(self, tple):
>         user32.KillTimer(self.__hwnd, tple._timerid)
>         del self.timers[tple._timerid]
            del self.timers[tple._timerid]
        except KeyError:


More information about the Twisted-Python mailing list