Please could a 'nix person run this script?

From: Date: Wed, 16 Jan 2002 02:03:32 +0000
Subject: Please could a 'nix person run this script?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1002@lists.php.net to get a copy of this message
Works here, needs testing on nix before I throw it into docs. Please say which o/s. Thanks. <? dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); function here_goes($button) { $child = $button->child; echo $child->get()."\n"; } $window = &new GtkWindow(); $window->connect_object('destroy', array('gtk', 'main_quit')); $window->set_title('GtkRadioButton demo'); $box = &new GtkVBox(); $window->add($box); $button1 = &new GtkRadioButton(null, 'button 1'); $button1->connect('pressed', 'here_goes'); $box->pack_start($button1); for ($i = 2; $i <= 4; $i++) { $button = &new GtkRadioButton($button1, 'button ' . $i); $button->connect('pressed', 'here_goes'); $box->pack_start($button); } $button_end = &new GtkButton('Exit'); $button_end->connect_object('clicked', array('gtk', 'main_quit')); $box->pack_end($button_end); $window->show_all(); gtk::main(); ?>

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