提交 19a383dd 编写于 作者: 之一Yo's avatar 之一Yo

修复流式布局中移除小部件的问题 (#404)

上级 50200984
......@@ -85,6 +85,11 @@ class FlowLayout(QLayout):
return None
def removeWidget(self, widget):
for i, item in enumerate(self._items):
if item.widget() is widget:
return self.takeAt(i)
def removeAllWidgets(self):
""" remove all widgets from layout """
while self._items:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册