Ticket #4862 defect closed fixed
SerialPort (win32) incompatible with gtk2reactor
| Reported by: | detly | Owned by: | exarkun |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | jason.heeris@…, itamar@… | Branch: | branches/win32-gtk-win32events-4862 |
| Author: | exarkun | Launchpad Bug: |
Description
When an attempt is made to make a serial port connection under the gtk2reactor in Windows, the following traceback results:
File "C:\Python26\lib\site-packages\twisted\internet\_win32serialport.py", line 56, in __init__
self.reactor.addEvent(self._overlappedRead.hEvent, self, 'serialReadEvent')
exceptions.AttributeError: 'PortableGtkReactor' object has no attribute 'addEvent'
The attached code take a port name as the first argument. It can be run under Linux, and doesn't do anything visible. Under Windows, you get the traceback.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

