MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_tk_widget

Method get_tk_widget

lib/matplotlib/backends/_backend_tk.py:318–325  ·  view source on GitHub ↗

Return the Tk widget used to implement FigureCanvasTkAgg. Although the initial implementation uses a Tk canvas, this routine is intended to hide that fact.

(self)

Source from the content-addressed store, hash-verified

316 self._idle_draw_id = self._tkcanvas.after_idle(idle_draw)
317
318 def get_tk_widget(self):
319 """
320 Return the Tk widget used to implement FigureCanvasTkAgg.
321
322 Although the initial implementation uses a Tk canvas, this routine
323 is intended to hide that fact.
324 """
325 return self._tkcanvas
326
327 def _event_mpl_coords(self, event):
328 # calling canvasx/canvasy allows taking scrollbars into account (i.e.

Callers 8

__init__Method · 0.80
save_figureMethod · 0.80
__init__Method · 0.80
test_never_updateFunction · 0.80
check_focusFunction · 0.80
test_figureFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_never_updateFunction · 0.64
check_focusFunction · 0.64
test_figureFunction · 0.64