Server IP : 66.29.132.122 / Your IP : 18.188.178.181 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/env ruby # hello_glade2.rb - sample for Ruby/Libglade2 # # Copyright (C) 2004-2008 Masao Mutoh # This file is distributed under the same license as gettext. require 'rubygems' require 'libglade2' class HelloLibglade2 def initialize(path, appname) @glade = GladeXML.new(path, nil, appname, "locale") {|handler| method(handler)} end def on_quit puts "Hello world" Gtk.main_quit end end if __FILE__ == $0 APPNAME = "hello_glade2" Gnome::Program.new(APPNAME, "1.0") HelloLibglade2.new("hello_glade2.glade", APPNAME) Gtk.main end