Ver Mensaje Individual
  #6 (permalink)  
Antiguo 21/12/2010, 16:50
Avatar de bitbow
bitbow
 
Fecha de Ingreso: julio-2006
Ubicación: Distrito Federal
Mensajes: 635
Antigüedad: 17 años, 9 meses
Puntos: 34
Respuesta: Reanimen los foros de PHP-GTK

Siguiendo con le intento aqui les dejo algunos enlaces, no puedo decir que fue facil o dificil encontrarlos, lo sierto es que casi nadie comenta sobre los programas o utilidades que hay para PHP-GTK.

Instalador a forma de Runtime que incluye ejemplos.

http://sourceforge.net/projects/pigii/

Programas realizados en PHP-GTK

http://sourceforge.net/projects/lwinstok/
http://sourceforge.net/projects/linuxstok/

Ejemplo con Glade (no hace nada, solo abre una ventana)

<?php
$glade = new GladeXML(dirname(__FILE__) . '/main.glade');

$window = $glade->get_widget('wndClose');
$window->connect_simple('destroy', array('Gtk', 'main_quit'));

$button = $glade->get_widget('btnClose');
$button->connect_simple('clicked', 'onClickButton');

function onClickButton(){
$dialog = new GtkMessageDialog($this, Gtk::DIALOG_MODAL | Gtk::DIALOG_DESTROY_WITH_PARENT,
Gtk::MESSAGE_INFO, Gtk::BUTTONS_OK, sprintf('This message box has been popped up %d time%s.', $this->counter, $this->counter == 1 ? '' : 's'));
$dialog->run();
//Gtk::main_quit();
}

Gtk::main();
?>

Codigo de Archivo de Galde

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--*- mode: xml -*-->
<glade-interface>
<widget class="GtkWindow" id="wndClose">
<property name="visible">True</property>
<property name="title" translatable="yes">Close me</property>
<property name="window_position">GTK_WIN_POS_CENTER_ALWAYS</property>
<property name="default_width">315</property>
<property name="default_height">305</property>
<signal name="destroy" handler="gtk::main_quit"/>
<child>
<widget class="GtkFixed" id="fixed1">
<property name="visible">True</property>
<child>
<widget class="GtkButton" id="btnClose">
<property name="width_request">83</property>
<property name="height_request">47</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label">Enviar</property>
<property name="response_id">0</property>
<signal name="clicked" handler="onClickButton"/>
</widget>
<packing>
<property name="x">224</property>
<property name="y">242</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="entry1">
<property name="width_request">213</property>
<property name="height_request">22</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="x">6</property>
<property name="y">243</property>
</packing>
</child>
<child>
<widget class="GtkList" id="list1">
<property name="width_request">299</property>
<property name="height_request">217</property>
<property name="visible">True</property>
<property name="selection_mode">GTK_SELECTION_SINGLE</property>
</widget>
<packing>
<property name="x">9</property>
<property name="y">15</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>

Esperemos que este foro tenga mas afluencia.
__________________
El ego es el mayor enemigo de un hombre inteligente.