0

I'm using the libgdl in Python using GObject introspection. Does anybody know how to remove a Gdl.DockItem from a Gdl.Dock? I've tried:

dock.remove(dockitem)

and

dock.master.remove(dockitem)

And I've also tried destroying the dockitem and it's child widget. Can't seem to find an example of where this is done.

Micah Carrick
  • 9,967
  • 3
  • 31
  • 43

1 Answers1

3

Figured it out. I was looking for the unbind() method. So, if somebody stumbles upon this, it looks a little like this:

dockitem.unbind()
widget.destroy() # where widget was originally added to dock item
Micah Carrick
  • 9,967
  • 3
  • 31
  • 43