Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ---
- $box = new GtkBox(GtkOrientation::VERTICAL);
- // ---
- $button1 = GtkButton::new_with_label("Botão 1");
- $box->pack_start($button1, TRUE, TRUE);
- // ---
- $button2 = clone $button1;
- $button2->set_label("Botão 2");
- $box->pack_start($button2, TRUE, TRUE);
- // ---
- $win = new GtkWindow();
- $win->add($box);
- // ---
- $win->show_all();
- $win->connect("destroy", ["Gtk", "main_quit"]);
- Gtk::main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement