MCPcopy Create free account
hub / github.com/mhammond/pywin32 / SetLineState

Method SetLineState

Pythonwin/pywin/debugger/debugger.py:915–921  ·  view source on GitHub ↗
(self, fileName, lineNo, lineState)

Source from the content-addressed store, hash-verified

913 self.SetLineState(fileName, lineNo, lineState)
914
915 def SetLineState(self, fileName, lineNo, lineState):
916 # Set the state of a line if the document is open.
917 doc = editor.editorTemplate.FindOpenDocument(fileName)
918 if doc is not None:
919 marker = _LineStateToMarker(lineState)
920 if not doc.MarkerCheck(lineNo, marker):
921 doc.MarkerAdd(lineNo, marker)
922
923 def ResetLineState(self, fileName, lineNo, lineState):
924 # Set the state of a line if the document is open.

Callers 2

set_breakMethod · 0.95
ShowLineStateMethod · 0.95

Calls 4

_LineStateToMarkerFunction · 0.85
MarkerCheckMethod · 0.80
MarkerAddMethod · 0.80
FindOpenDocumentMethod · 0.45

Tested by

no test coverage detected