mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Adde getmargin() method to calculate the width of the margin.
This commit is contained in:
parent
6fd42b8e92
commit
576136044c
2 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,9 @@ class DebuggerSourceWindow(srcwin.SourceWindow):
|
|||
s = s + ' '
|
||||
return s
|
||||
|
||||
def getmargin(self):
|
||||
return stdwin.textwidth('[' + `self.linecount+1` + ']->B ')
|
||||
|
||||
def setlineno(self, newlineno):
|
||||
if newlineno != self.curlineno:
|
||||
oldlineno = self.curlineno
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue