Re: Fw: [PHP-GTK] Actions to other place

From: Date: Thu, 04 Jul 2002 02:20:52 +0000
Subject: Re: Fw: [PHP-GTK] Actions to other place
References: 1 2 3 4 5  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2196@lists.php.net to get a copy of this message
Pablo Fischer wrote:
I Just can add & remove.. just one time, Im pasting the function that add & removes the gtk objects: <?php function show_news() { global $awork_area,$label;
        ^^^ $++++a++++work_area .....
$work_area->remove($label); $label = &new GtkLabel("News"); $work_area->add($label); $label->show(); return $label; } ?> :(.. Yeah.. I can remove and add a new object.. but just one time. Paul Fischer
Thaaaaaaaankks!! Now it works :-). But.. When it appears.. and I clicked it once again, I get: Gtk-CRITICAL **: file gtkcontainer.c: line 730 (gtk_container_remove): assertion `widget->parent == GTK_WIDGET (container)' failed. Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin->child == NULL' failed. Why?. Paul Fischer. El mié, 03-07-2002 a las 19:44, Alan Knowles escribió:
$button_2->show(); :) Pablo Fischer wrote:
     
Hi to all; Sorry but I cant do the thing that I want.. "That when I click a button.. some other widget objects will appear in a determinated place (a frame)". I add the lines: $frame --> remove($button); $frame --> add($button_2); And only the $button get removed.. but not added the $button_2. Plz, check: http://www.zonixmexico.com/Cajas-2.phps Paul Fischer.
       
-- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
     
-- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.gtk.general (#2196) next »