Re: Widget in Gnome2 Canvas not visible



On Saturday, January 31, 2004, at 05:41 PM, Mike Mayer wrote:

Do you ->show() the button?

Yes. Here is a small sample. The rectangle is visible, but the button is not.

i think you also need to show the canvas items. and don't forget about z-order. your rectangle may be covering the button. try $item->raise(1) or $item->raise_to_top.


Also, the window starts up tiny. It would be nice to have the
initial size be larger.

use $win->set_default_size($width, $height) for that.

--
Brian: If i recall correctly, this is the physics department.
Chris: That explains all that gravity.
        -- Family Guy, "The Story on Page One"




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