Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove widget in gtk.Table?

I'm using gtk.Table in my python application. How can I remove a widget such a gtk.VBox, gtk.HBox or a gtk.Button that I attached in the table? I want to remove the widget in exactly position. Is there anyway to unattach a child widget from table? Such like:

table.attach(button,1,2,1,2)
table.unattach(button,1,2,1,2)
like image 668
depzaivai Avatar asked Aug 10 '26 12:08

depzaivai


1 Answers

table.remove(button)

This works in general for GTK containers, such as hboxes and vboxes, not just tables.

like image 90
dumbmatter Avatar answered Aug 12 '26 00:08

dumbmatter