Code:
extern crate gtk;
use gtk::prelude::*;
use gtk::{Label, Window, WindowType};
fn main() {
if gtk::init().is_err() {
println!("Failed to initialize GTK.");}
else {
let window = Window::new(WindowType::Toplevel);
window.set_title("Count to 1,000");
window.set_default_size(200, 76);
let label = Label::new("975");
window.add(&label);
window.show_all();
window.connect_delete_event(|_, _| {
gtk::main_quit();
Inhibit(false)});}
gtk::main();}
Workshop: Mind Games ++ Test Subject Chip and Melinda Bizarr Chicken Burger
Sets: Mind Games 500
Legacy: GM5 Explorer's Delight Rising
Sets: Mind Games 500
Legacy: GM5 Explorer's Delight Rising