Server IP : 66.29.132.122 / Your IP : 18.191.192.59 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/gettext-3.2.2/samples/ |
Upload File : |
#!/usr/bin/ruby # hello_gtk2.rb - sample for Ruby/GTK2 # # Copyright (C) 2001-2006 Masao Mutoh # This file is distributed under the same license as gettext. require 'rubygems' require 'gettext' require 'gtk2' class LocalizedWindow < Gtk::Window include GetText base_dir = File.dirname(__FILE__) bindtextdomain("hello_gtk2", :path => File.join(base_dir, "locale"), :output_charset => "utf-8") def initialize super signal_connect('delete-event') do Gtk.main_quit end add(Gtk::Label.new(_("hello, gtk world"))) end end LocalizedWindow.new.show_all Gtk.main