pyqt:布局删除小部件
参照:https://stackoverflow.com/questions/5899826/pyqt-how-to-remove-a-widget
import sip
layout.removeWidget(self.widget_name)
sip.delete(self.widget_name)
self.widget_name = None
参照:https://stackoverflow.com/questions/5899826/pyqt-how-to-remove-a-widget
import sip
layout.removeWidget(self.widget_name)
sip.delete(self.widget_name)
self.widget_name = None