P
Pokkai Dokkai
my os --> ubuntu 7.04
my ruby--> ruby 1.8.5 (2006-08-25) [i486-linux]
recently i download "ruby-gtk2-0.16.0" and install it
in terminal...
mani@user-UBUNTU704:~$ vim welcome.rb
require "gtk2"
include Gtk
def quick_message(message)
# Create the dialog
dialog = Gtk:ialog.new("Message",
$main_application_window,
Gtk:ialog:ESTROY_WITH_PARENT,
[ Gtk::Stock::OK,
Gtk:ialog::RESPONSE_NONE ])
# Ensure that the dialog box is destroyed when the user responds.
dialog.signal_connect('response') { dialog.destroy }
# Add the message in a label, and show everything we've added to the
dialog.
dialog.vbox.add(Gtk::Label.new(message))
dialog.show_all
end
quick_message("welcome")
puts("checking")
mani@user-UBUNTU704:~$ ruby welcome.rb
checking
mani@user-UBUNTU704:~$
what is wrong here...
thank you for help
my ruby--> ruby 1.8.5 (2006-08-25) [i486-linux]
recently i download "ruby-gtk2-0.16.0" and install it
in terminal...
mani@user-UBUNTU704:~$ vim welcome.rb
require "gtk2"
include Gtk
def quick_message(message)
# Create the dialog
dialog = Gtk:ialog.new("Message",
$main_application_window,
Gtk:ialog:ESTROY_WITH_PARENT,
[ Gtk::Stock::OK,
Gtk:ialog::RESPONSE_NONE ])
# Ensure that the dialog box is destroyed when the user responds.
dialog.signal_connect('response') { dialog.destroy }
# Add the message in a label, and show everything we've added to the
dialog.
dialog.vbox.add(Gtk::Label.new(message))
dialog.show_all
end
quick_message("welcome")
puts("checking")
mani@user-UBUNTU704:~$ ruby welcome.rb
checking
mani@user-UBUNTU704:~$
what is wrong here...
thank you for help