Class: MultimediaParadise::GUI::Libui::Lyrics
- Inherits:
-
Object
- Object
- MultimediaParadise::GUI::Libui::Lyrics
show all
- Defined in:
- lib/multimedia_paradise/gui/libui/lyrics/lyrics.rb
Overview
Instance Method Summary
collapse
-
#create_skeleton ⇒ Object
# === create_skeleton ========================================================================= #.
-
#initialize ⇒ Lyrics
constructor
# === initialize ========================================================================= #.
Constructor Details
#initialize ⇒ Lyrics
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/multimedia_paradise/gui/libui/lyrics/lyrics.rb', line 28
def initialize
create_skeleton
@main_window = ui_main_window(
'Lyrics', 1500, 800, 0
)
outer_vbox = padded_vbox
@text_view = ui_text_view
file = MultimediaParadise.file_lyrics
if File.exist? file
@text_view.set_text(File.read(file).to_s)
end
outer_vbox << @text_view
button = ui_quit_button hbox = ui_hbox
hbox.add(button, 0)
outer_vbox.add(hbox, 0)
@main_window.child = outer_vbox
@main_window.intelligent_exit
end
|
Instance Method Details
#create_skeleton ⇒ Object
59
60
61
|
# File 'lib/multimedia_paradise/gui/libui/lyrics/lyrics.rb', line 59
def create_skeleton
@entry_URL_to_use_for_the_youtube_video = ui_entry
end
|