Skip to content

Instantly share code, notes, and snippets.

@chanmix51
Created October 6, 2010 19:47
Show Gist options
  • Save chanmix51/613951 to your computer and use it in GitHub Desktop.
Save chanmix51/613951 to your computer and use it in GitHub Desktop.
use glade, gtk
import glade/XML
import gtk/Gtk
Calculette: class
{
glade_ui : XML
init: func {
glade_ui = XML new("calculette.glade", "", "") .signalAutoConnect()
}
button_equal_clicked_cb: func
button_reset_clicked_cb: func
}
main: func {
calc: Calculette
calc = Calculette new .init()
Gtk.main()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment