class MultimediaParadise::GUI::Libui::Lyrics
Public Class Methods
new()
click to toggle source
#¶ ↑
initialize¶ ↑
#¶ ↑
# 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 # ======================================================================= # # Add the main text-view next # ======================================================================= # @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 # ======================================================================= # # Add the download button next: # ======================================================================= # button = ui_quit_button # Use a quit button. hbox = ui_hbox hbox.add(button, 0) outer_vbox.add(hbox, 0) @main_window.child = outer_vbox @main_window.intelligent_exit end