Sha256: 3be4aeaefbdb1b730a1be274b1d9b06505e056f5caf718f220600613d49b170d

Contents?: true

Size: 310 Bytes

Versions: 28

Compression:

Stored size: 310 Bytes

Contents

#!/usr/bin/ruby
# hellotk.rb - sample for Ruby/TK
#
# Copyright (C) 2004 Masao Mutoh
# This file is distributed under the same license as Ruby-GetText-Package.

require 'gettext'
require 'tk'

include GetText
bindtextdomain("hellotk", "locale")

TkLabel.new {
  text _("hello, tk world")
  pack
}

Tk.mainloop

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
gettext-1.10.0-mswin32 samples/hellotk.rb
gettext-1.9.0-mswin32 samples/hellotk.rb
gettext-1.8.0-mswin32 samples/hellotk.rb
gettext-1.7.0-mswin32 samples/hellotk.rb
gettext-1.6.0-mswin32 samples/hellotk.rb
gettext-1.5.0-mswin32 samples/hellotk.rb
gettext-1.4.0-mswin32 samples/hellotk.rb
gettext-1.3.0-mswin32 samples/hellotk.rb
gettext-1.2.0-mswin32 samples/hellotk.rb
gettext-1.1.1-mswin32 samples/hellotk.rb
gettext-1.1.0-mswin32 samples/hellotk.rb
gettext-1.0.0-mswin32 samples/hellotk.rb
gettext-1.0.0 samples/hellotk.rb
gettext-1.2.0 samples/hellotk.rb
gettext-1.1.1 samples/hellotk.rb
gettext-1.10.0 samples/hellotk.rb
gettext-1.1.0 samples/hellotk.rb
gettext-1.5.0 samples/hellotk.rb
gettext-1.3.0 samples/hellotk.rb
gettext-1.4.0 samples/hellotk.rb