Re: reparent a widget




On May 28, 2008, at 4:02 PM, anguila wrote:

I have a toolbar and i want to with pushing a button, the treeview that have below it changes to another widget. I know that it exist reparent function that does that. I make de GUI with glade, and all widgets that you create needs a window parent . How can I create a vbox widget in glade3 without creating a window? Because if I create a window, to put the widget (vbox in this case) that I want to exchange this widget it has a parent (the window), and if it has a parent i can't reparent it.

There is a way to make this with glade? or I should create vbox2 and all those new widgets without glade?

I presume that a Notebook widget is not appropriate, or you would've gone with that. ;-)

If you're just toggling between two or three things, you can make them all in glade in the same spot, but only set one of them visible at a time --- the "visible" property handles this.



--
The Master in the art of living makes little distinction between his work and his play, his labor and his leisure, his mind and his body, his education and his recreation, his love and his religion. He hardly knows which is which. He simply pursues his vision of excellence in whatever he does, leaving others to decide whether he is working or playing. To him he is always doing both.

  -- Zen Philosophy






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]