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)
| 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. |
no outgoing calls