Re: Widget in Gnome2 Canvas not visible
- From: Torsten Schoenfeld <kaffeetisch web de>
- To: gtk-perl-list gnome org
- Subject: Re: Widget in Gnome2 Canvas not visible
- Date: Sun, 01 Feb 2004 00:16:03 +0100
On Sat, 2004-01-31 at 23:41, Mike Mayer wrote:
Do you ->show() the button?
Yes. Here is a small sample. The rectangle is visible, but the button is
not.
Looks like you have to specify the button's width and height explicitly:
$item = Gnome2::Canvas::Item->new($root,
"Gnome2::Canvas::Widget",
widget => $button,
x => 2,
y => 2,
width => 50,
height => 50,
);
Also, the window starts up tiny. It would be nice to have the
initial size be larger.
Use set_size_request for that.
Bye,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]