Home
last modified time | relevance | path

Searched refs:new_topvisible (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/idlelib/
DCodeContext.py107 def get_context(self, new_topvisible, stopline=1, stopindent=0): argument
120 for linenum in xrange(new_topvisible, stopline-1, -1):
127 if opener and linenum < new_topvisible and indent >= stopindent:
138 new_topvisible = int(self.text.index("@0,0").split('.')[0])
139 if self.topvisible == new_topvisible: # haven't scrolled
141 if self.topvisible < new_topvisible: # scroll down
142 lines, lastindent = self.get_context(new_topvisible,
148 elif self.topvisible > new_topvisible: # scroll up
152 while self.info[-1][0] >= new_topvisible:
155 lines, lastindent = self.get_context(new_topvisible,
[all …]
/external/python/cpython3/Lib/idlelib/
Dcodecontext.py109 def get_context(self, new_topvisible, stopline=1, stopindent=0): argument
122 for linenum in range(new_topvisible, stopline-1, -1):
129 if opener and linenum < new_topvisible and indent >= stopindent:
140 new_topvisible = int(self.text.index("@0,0").split('.')[0])
141 if self.topvisible == new_topvisible: # haven't scrolled
143 if self.topvisible < new_topvisible: # scroll down
144 lines, lastindent = self.get_context(new_topvisible,
150 elif self.topvisible > new_topvisible: # scroll up
154 while self.info[-1][0] >= new_topvisible:
157 lines, lastindent = self.get_context(new_topvisible,
[all …]