class RBT::GUI::Gtk::Installer
Constants
- HEIGHT
#¶ ↑
HEIGHT
¶ ↑#¶ ↑
- TITLE
#¶ ↑
TITLE
¶ ↑#¶ ↑
- USE_THIS_FONT
#¶ ↑
USE_THIS_FONT
¶ ↑#¶ ↑
- WIDTH
#¶ ↑
WIDTH
¶ ↑#¶ ↑
Public Class Methods
new( commandline_arguments = ARGV, run_already = true )
click to toggle source
run( i = ARGV )
click to toggle source
run_gtk2( i = ARGV )
click to toggle source
#¶ ↑
RBT::GUI::Gtk::Installer.run_gtk2
¶ ↑
#¶ ↑
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 167 def self.run_gtk2( i = ARGV ) require 'gtk_paradise/app/app.rb' _ = ::RBT::GUI::Gtk::Installer.new(i) r = ::Gtk.run r << _ r.automatic_size_then_automatic_title r.enable_quick_exit r.top_left_then_run end
run_gtk3( i = ARGV )
click to toggle source
#¶ ↑
RBT::GUI::Gtk::Installer.run_gtk3
¶ ↑
#¶ ↑
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 182 def self.run_gtk3( i = ARGV ) require 'gtk_paradise/app/app.rb' _ = ::RBT::GUI::Gtk::Installer.new(i) r = ::Gtk.run r << _ r.automatic_size_then_automatic_title r.enable_quick_exit r.top_left_then_run end
Public Instance Methods
border_size?()
click to toggle source
connect_skeleton()
click to toggle source
#¶ ↑
connect_skeleton
(connect tag)¶ ↑
#¶ ↑
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 124 def connect_skeleton abort_on_exception _ = left_aligned_label('Installer:') _.use_this_font = :hack_30 minimal(_, 2) hbox1 = create_hbox hbox1.minimal(text('Compile this program: ')) # === @entry1 @entry1 = default_entry hbox1.maximal(@entry1) button_do_compile_the_program = button('_Compile the button') button_do_compile_the_program.clear_background button_do_compile_the_program.bblack1 button_do_compile_the_program.on_hover(:lightgreen) button_do_compile_the_program.on_clicked { Thread.new { do_compile_the_program } } hbox1.minimal(button_do_compile_the_program) minimal( hbox1 ) end
create_skeleton()
click to toggle source
do_compile_the_program()
click to toggle source
padding?()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 73 def reset reset_the_internal_variables populate_the_internal_hash_with_the_default_values infer_the_namespace # ======================================================================= # # === @configuration # ======================================================================= # @configuration = [true, __dir__, namespace?] # ======================================================================= # # === Set the title, width, height and the font in use. # ======================================================================= # title_width_height_font(TITLE, WIDTH, HEIGHT, USE_THIS_FONT) use_gtk_paradise_project_css_file infer_the_size_automatically # ======================================================================= # # === @installer # ======================================================================= # @installer = RBT::Installer.new { :dont_run_yet } end