Re: widget visibility



Marius Feraru <altblue gmail com> writes:

On Wed, Nov 24, 2010 at 13:35, haratron <haratron gmail com> wrote:
They don't show up, despite having their visible property set to 1.
Just by manipulating this property won't get you too far.

Ie. that ->visible() one is just the widget flags bits getter/setter, it
doesn't do anything.  The pod could make that clearer.

“set_visible”

Or plain property "visible" as in $widget->set(visible=>1) in all
versions.  ->hide and ->show are probably easier for direct on or off,
or use the visible property if computing a visibility like (untested),

    $want_visibile = ($cbox->get_active_text eq "four");
    $label2->visible($want_visibile);
    $entry1->visible($want_visibile);



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