Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Gtk;
- public class Activity : Box {
- private SpinButton spin_box;
- public Activity (){
- GLib.Object (orientation: Orientation.VERTICAL, spacing: 5);
- }
- construct {
- spin_box = new SpinButton.with_range (0, 130, 1);
- spin_box.adjustment.value = 35;
- homogeneous = true;
- add (spin_box);
- }
- }
- void main(string[] args) {
- Gtk.init (ref args);
- var win = new Window ();
- var act = new Activity ();
- win.add (act);
- win.show_all ();
- Gtk.main ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement