#NEWLINE# def serialWriteEvent( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# dataToWrite = self . outQueue . pop ( 0 ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# self . writeInProgress = 0 #NEWLINE# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# win32file . WriteFile ( self . _serial . hComPort , self , self . _overlappedWrite )