jje Pablo lo hice mucho mas facil mira, aqui os dejo el codigo jeje de prueba que me monte
![apachar ojo](http://static.forosdelweb.com/fdwtheme/images/smilies/wink.png)
VIVAN LOS OBJETOS
Código:
<?php
dl(stristr(PHP_OS, "WIN") ? "php_gtk.dll" : "php_gtk.so");
class objetos {
var $gui;
function objetos() {
$this->gui = array();
}
function cerrar() {
Gtk::main_quit();
}
function crear() {
$this->gui['ventana'] = new GtkWindow();
$this->gui['ventana']->set_usize(300,300);
$this->gui['ventana']->connect('destroy',array( &$this, 'cerrar'));
$this->gui['caja'] = new GtkVBox();
$this->gui['boton'] = new GtkButton('Aceptar');
$this->gui['boton']->connect('clicked',array( &$this, 'mostrar'));
$this->gui['boton']->show();
$this->gui['texto'] = new GtkText;
$this->gui['texto']->set_editable(true);
$this->gui['texto']->show();
$this->gui['caja']->pack_start($this->gui['boton']);
$this->gui['caja']->pack_end($this->gui['texto']);
$this->gui['ventana']->add($this->gui['caja']);
$this->gui['ventana']->show_all();
Gtk::main();
}
function mostrar() {
$palabras = $this->gui['texto']->get_chars(0,-1);
echo $palabras;
}
}
$objeto = new objetos;
$objeto->crear();
?>
<table style="border:1px solid black"><tr><td><center>
<embed width="88" height="144" src="http://www.alaplaya.com/~epplestun/yo.swf"></td></td><font face=verdana size=1>
Ivan Rodriguez el poder es [B]PHP</p></td></tr></table>