Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 GObject 自省在 Python 中使用 libgdl。有人知道如何从 Gdl.Dock 中删除 Gdl.DockItem 吗?我试过了:
dock.remove(dockitem)
和
dock.master.remove(dockitem)
而且我还尝试过销毁停靠项和它的子小部件。似乎找不到这样做的例子。
弄清楚了。我正在寻找 unbind() 方法。所以,如果有人偶然发现这个,它看起来有点像这样:
dockitem.unbind() widget.destroy() # where widget was originally added to dock item