Tema: GtkDialog
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/03/2004, 11:42
Avatar de payo22
payo22
 
Fecha de Ingreso: noviembre-2002
Ubicación: México
Mensajes: 839
Antigüedad: 22 años, 6 meses
Puntos: 1
GtkDialog

Hola Maestros:


tengo una duda no se que hay de malo en el siguiente script ya que no hace nada , no me marca ningun error pero tampoco me muestra el dialogo.

Código PHP:
<?php
                                                                                
   dl
('php_gtk.'.(strstr(PHP_OS'WIN') ? 'dll' 'so'));
                                                                                
$dialog = &new GtkDialog();
$dialog->set_policy(truefalsefalse);
$dialog->set_position(GTK_WIN_POS_CENTER);
$dialog->connect("destroy", array("gtk","main_quit"));
$dialog_vbox $dialog->vbox;
$dialog_action_area $dialog->action_area;
                                                                                
$user_info_label = &new GtkLabel("Some Important Information");
$dialog_vbox->pack_start($user_info_label);
                                                                                
$ok_button = &new GtkButton("OK");
$dialog_action_area->pack_start($ok_button);
                                                                                
gtk::main();
?>
alguien sabe que estoy haciendo mal bueno de hecho este codigo no lo hice si no que viene en el manual de php-gtk.

gracias por todo.