from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg class GraphWidget(FigureCanvasQTAgg): def __init__(self, *args): ...