class MultimediaParadise::GUI::Gtk::Notebook
Constants
- TITLE
#¶ ↑
TITLE
¶ ↑#¶ ↑
- WIDTH
#¶ ↑
WIDTH
¶ ↑#¶ ↑
Public Class Methods
new( i = nil, run_already = true )
click to toggle source
#¶ ↑
initialize¶ ↑
#¶ ↑
Calls superclass method
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 53 def initialize( i = nil, run_already = true ) super(TITLE) set_label_widget( ::Gtk::Label.new.set_markup( %Q(<span size="larger" foreground="darkblue" weight="bold">#{TITLE}</span>) ) ) reset set_input(i) run if run_already end
Public Instance Methods
height?()
click to toggle source
input?()
click to toggle source
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 93 def run # ======================================================================= # # Add the notebook next, via Gtk.add_notebook(). # ======================================================================= # play_video_from_my_collection = MultimediaParadise::GUI::Gtk::PlayVideoFromMyCollection.new video_collection = MultimediaParadise::GUI::Gtk::VideoCollection.new youtube_downloader = MultimediaParadise::GUI::Gtk::YoutubeDownloader.new play_from_radio_station = MultimediaParadise::GUI::Gtk::PlayFromRadioStation.new lyrics_widget = MultimediaParadise::GUI::Gtk::Lyrics.new #id_renamer = MultimediaParadise::GUI::Gtk::IdRenamer.new notebook = ::Gtk.add_notebook( play_video_from_my_collection, video_collection, youtube_downloader, play_from_radio_station, lyrics_widget, id_renamer ) { :enable_drag_and_support } add(notebook) show_all end
set_input(i = '')
click to toggle source