////// This shows a basic usage of creating an push button and a callback
///externcrate rute;userute::*;fnmain(){Rute::new();// Create the application
let _app =Application::new();let button =PushButton::new();
button.set_text("Push me!");
button.set_pressed_event(||println!("Button was pressed!"));
button.show();/*
//
let widget = Widget::new();
widget
.set_paint_event(|event| {
let rect = event.rect().unwrap();
println!("size {} {}", rect.width(), rect.height());
}).show();
*/// Start the application
Application::exec();}