Files
doc-gtk/examples/tutorials/packing/fixed.phpw
2005-10-19 19:50:06 +00:00

18 lines
338 B
Plaintext

<?php
$w = new GtkWindow();
$w->set_title('GtkFixed test');
$w->connect_simple('destroy', array('gtk', 'main_quit'));
$btn = new GtkButton('Button');
$txt = new GtkEntry();
$fixed = new GtkFixed();
$w->add($fixed);
$fixed->put($btn, 10, 100);
$fixed->put($txt, 50, 10);
$btn->set_size_request(150, -1);
$w->show_all();
Gtk::main();
?>