Delete widget in gtk.Table?

I am using gtk.Table in my python application. How do I remove a widget like gtk.VBox, gtk.HBox or gtk.Button that I have bound in the table? I want to remove the widget in a flat position. Is there a way to detach a child widget from a table? Such as the:

table.attach(button,1,2,1,2)
table.unattach(button,1,2,1,2)

      

+3


source to share


2 answers


table.remove(button)

      



This works mostly for GTK containers like hbox and vbox, not just tables.

+7


source


Don't disconnect.



table.remove (button, 1,2,1,2) works.

0


source







All Articles