Kaydet (Commit) 57613604 authored tarafından Guido van Rossum's avatar Guido van Rossum

Adde getmargin() method to calculate the width of the margin.

üst 6fd42b8e
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment