parameters: (self, level=1)
docstring: Set terminal status line: Data Terminal Ready
docstring_summary: Set terminal status line: Data Terminal Ready
docstring_tokens: Set terminal status line : Data Terminal Ready
function: def setDTR(self, level=1):
          """Set terminal status line: Data Terminal Ready"""
          # remember level for reconfigure
          if level:
              self._dtrState = win32.DTR_CONTROL_ENABLE
          else:
              self._dtrState = win32.DTR_CONTROL_DISABLE
          # also apply now if port is open
          if self.hComPort:
              if level:
                  win32.EscapeCommFunction(self.hComPort, win32.SETDTR)
              else:
                  win32.EscapeCommFunction(self.hComPort, win32.CLRDTR)
function_tokens: def setDTR ( self , level = 1 ) : # remember level for reconfigure if level : self . _dtrState = win32 . DTR_CONTROL_ENABLE else : self . _dtrState = win32 . DTR_CONTROL_DISABLE # also apply now if port is open if self . hComPort : if level : win32 . EscapeCommFunction ( self . hComPort , win32 . SETDTR ) else : win32 . EscapeCommFunction ( self . hComPort , win32 . CLRDTR )