Advertisement
Guest User

php-gtk2

a guest
Jun 9th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?PHP
  2. if (!class_exists('gtk')) {
  3.     die("Please load the php-gtk2 module in your php.ini\r\n");
  4. }
  5. $wnd = new GtkWindow();
  6. $wnd->set_title('Hello world');
  7. $wnd->connect_simple('destroy', array('gtk', 'main_quit'));
  8. $lblHello = new GtkLabel("hello world");
  9. $wnd->add($lblHello);
  10. $wnd->show_all();
  11. Gtk::main();
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement