Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'gtk2'
- require 'rubygems'
- require 'twitter'
- window = Gtk::Window.new
- window.set_default_size(400,200)
- window.title = "Esimene programm"
- vbox = Gtk::VBox.new(false, 0)
- client = Twitter::Client.new
- timeline = client.timeline_for(:user, :id => 'msarapik') do |status|
- vbox.add(Gtk::Label.new(status.text))
- end
- window.add(vbox)
- window.show_all
- Gtk.main
Add Comment
Please, Sign In to add comment