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

posted on 2019-07-18 21:14  小明他很忙  阅读(916)  评论(0编辑  收藏  举报

导航