Friday, June 4, 2010

A simple Calculator using Go Language with go-gtk

SCREENSHOT


You need to have Go and go-gtk installed.

You can install Go here

For go-gtk, download the source here, navigate to the directory and 'make example'.

Full source code of the calculator is available here.








5 comments:

  1. I get a load of errors of type:

    "typeof(gtk_label_set_text) *__cgo__268;
    typeof(_gtk_text_buffer_create_tag) *__cgo__269;
    typeof(gtk_text_view_set_overwrite) *__cgo__270;"

    Using archlinux with gtk+ 2.20

    ReplyDelete
  2. Make sure u have libgtk2.0-dev and lastest Go version installed.

    If the problem persists, mail me or comment on golang-nuts.

    ReplyDelete
  3. u mean can it work on windows? If the gtk binding can build successfully on windows, it will work.

    ReplyDelete