MCPcopy Index your code
hub / github.com/python/cpython / update

Method update

Lib/idlelib/tree.py:189–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 return self
188
189 def update(self):
190 if self.parent:
191 self.parent.update()
192 else:
193 oldcursor = self.canvas['cursor']
194 self.canvas['cursor'] = "watch"
195 self.canvas.update()
196 self.canvas.delete(ALL) # XXX could be more subtle
197 self.draw(7, 2)
198 x0, y0, x1, y1 = self.canvas.bbox(ALL)
199 self.canvas.configure(scrollregion=(0, 0, x1, y1))
200 self.canvas['cursor'] = oldcursor
201
202 def draw(self, x, y):
203 # XXX This hard-codes too many geometry constants!

Callers 15

_debug_object_browserFunction · 0.95
expandMethod · 0.95
collapseMethod · 0.95
initMethod · 0.95
restore_file_breaksMethod · 0.45
winconfig_eventMethod · 0.45
_calltip_windowFunction · 0.45
pyparse.pyFile · 0.45
writeMethod · 0.45
mywriteMethod · 0.45

Calls 4

drawMethod · 0.95
deleteMethod · 0.45
bboxMethod · 0.45
configureMethod · 0.45

Tested by 15

setUpClassMethod · 0.36
test_fontlist_keyMethod · 0.36
test_fontlist_mouseMethod · 0.36
setUpClassMethod · 0.36
setUpClassMethod · 0.36
setUpClassMethod · 0.36
setUpClassMethod · 0.36
test_source_selectedMethod · 0.36
test_hover_with_delayMethod · 0.36