Re: replacing widgets in packing boxes

On Mon, 2006-08-07 at 19:32 +0100, Dirk Koopman wrote:
I have some container or other, say a packing vbox, in the middle of a
huge screen and I have done $vbox->pack_start($widget, 0, 1, 5);

I now want, without rebuilding the whole screen from scratch, to replace
$widget with another, possibly completely different, $newwidget.

Is this possible?

I have the reference "$widget" available to me as well as its parent's.

So to answer my own question for now: I create an empty vbox() and
remember its reference (a palaver in itself) and then remove any old
widget (maybe none) and (re-)pack_start the new one. The vbox() will
only have one item in it which will fill it to the maximum space

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