Sha256: 0a14142d7f1d8a6c81c95172a8c6b6f189969736146d8a1435f7e0ecc311db83
Contents?: true
Size: 512 Bytes
Versions: 14
Compression:
Stored size: 512 Bytes
Contents
#!/usr/bin/ruby # hellgtk2.rb - sample for Ruby/GTK2 # # Copyright (C) 2001-2006 Masao Mutoh # This file is distributed under the same license as Ruby-GetText-Package. require 'gettext' require 'gtk2' class LocalizedWindow < Gtk::Window include GetText bindtextdomain("hellogtk", "locale", nil, "utf-8") def initialize super signal_connect('delete-event') do Gtk.main_quit end add(Gtk::Label.new(_("hello, gtk world"))) end end Gtk.init LocalizedWindow.new.show_all Gtk.main
Version data entries
14 entries across 14 versions & 1 rubygems