You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
676 B
Python
22 lines
676 B
Python
from . import _backend_tk
|
|
from .backend_agg import FigureCanvasAgg
|
|
from ._backend_tk import (
|
|
_BackendTk, FigureCanvasTk, FigureManagerTk, NavigationToolbar2Tk)
|
|
|
|
|
|
class FigureCanvasTkAgg(FigureCanvasAgg, FigureCanvasTk):
|
|
def draw(self):
|
|
super(FigureCanvasTkAgg, self).draw()
|
|
_backend_tk.blit(self._tkphoto, self.renderer._renderer, (0, 1, 2, 3))
|
|
self._master.update_idletasks()
|
|
|
|
def blit(self, bbox=None):
|
|
_backend_tk.blit(
|
|
self._tkphoto, self.renderer._renderer, (0, 1, 2, 3), bbox=bbox)
|
|
self._master.update_idletasks()
|
|
|
|
|
|
@_BackendTk.export
|
|
class _BackendTkAgg(_BackendTk):
|
|
FigureCanvas = FigureCanvasTkAgg
|