Re: widget reuse

On Dec 31, 2005, at 12:36 AM, Beast wrote:

Just curious, why reuse widget is not works:

   my $spacer = Gtk2::Label->new();



Gtk-CRITICAL **: file gtktable.c: line 598 (gtk_table_attach): assertion `child->parent == NULL' failed at

Widgets can have only one parent.

Creating an empty label set to 30 pixels wide to separate elements in an HBox is completely unnecessary, however, as you can specify padding (that's the last parameter to pack()) and spacing between children (e.g., $hbox->set_spacing(30)).

That's it! It's one thing for a ghost to scare my children, but it's another to play my theremin!
  - Homer Simpson

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