Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Ruby Gtk Bagian 2

Ruby Gtk Bagian 2

Ratings: (0)|Views: 48|Likes:
Published by Slametz Pembuka
Ruby Gtk Teknik Informatika UNAS (universitas nasional). Ruby di Linux
Ruby Gtk Teknik Informatika UNAS (universitas nasional). Ruby di Linux

More info:

Published by: Slametz Pembuka on Apr 03, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/03/2011

pdf

text

original

 
BAHASA PEMROGRAMAN RUBY DI LINUX
MENGGUNAKAN RUBY-GTk
Oleh:Slamet Nurhadi
DEPARTEMEN TEKNIK INFORMATIKAUNIVERSITAS NASIONAL
DEPARTEMEN TEKNIK INFORMATIKA UNIVERSITAS NASIONAL
 
Menginstall Ruby dengan menggunakan kode dibawah ini ketik di console
$> sudo apt-get install ruby-full libruby libruby-extras ruby1.8-dev
Untuk menginstall paket-paket Ruby-GNOME2 di Ubuntu Linux cukup dengan mengetikan perintah:
$> sudo apt-get install ruby-gnome2
#!/usr/bin/env rubyrequire 'gtk2'window = Gtk::Window.new window.border_width = 10window.set_size_request(150, ­1)window.title = "Vd. ­ Boxes"window.signal_connect('delete_event') { false }window.signal_connect('destroy') { Gtk.main_quit }labels = %w[Andrew Joe Samantha Jonatan]# homogeneous, spacingvbox = Gtk::VBox.new(false, 0)labels.each do |name|btt = Gtk::Button.new(name)btt.signal_connect("clicked") {btt.destroy}
DEPARTEMEN TEKNIK INFORMATIKA UNIVERSITAS NASIONAL
 
vbox.pack_start_defaults(btt)endwindow.add(vbox)window.show_allGtk.main
gambar tampak seperti ini:
#!/usr/bin/env rubyrequire 'gtk2'window = Gtk::Window.new window.border_width = 20window.set_size_request(150, ­1)window.title = "H­Boxes"window.signal_connect('delete_event') { false }window.signal_connect('destroy') { Gtk.main_quit }labels = %w[Jakarta Pekalongan Semarang Surabaya]
DEPARTEMEN TEKNIK INFORMATIKA UNIVERSITAS NASIONAL

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->