Home > Back-end >  Python PyQt Qwidget image how to remove
Python PyQt Qwidget image how to remove

Time:12-05

I use pyqt drawing, I define the inheritance FigureCanvasQTAgg class called MyFigure, drawing is complete, with MyFigure I leave an object on Qt interface widget_2 used for drawing, can the image map in Qt window now, because need to drawing in the same position, just don't know how to draw a good image to remove, please have bosses can teach
Self. Canvas=MyFigure (Ttype=2)
Self. Canvas. Plot_pie ()
Self. Gridlayout=QGridLayout (self. Widget_2)
Self. Gridlayout. AddWidget (self. Canvas, 0, 0)
Couldn't find python plates

CodePudding user response:

Problem solving and myfigure off line, the use of the self. The canvas. The close ()
  • Related