Class: GtkApp::Dialog::Progress

Inherits:
Gtk::Dialog
  • Object
show all
Defined in:
lib/gtk_app/dialog/progress.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ Progress

Returns a new instance of Progress.



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/gtk_app/dialog/progress.rb', line 4

def initialize(parent)
  
  super("test", parent, 
    Gtk::Dialog::DESTROY_WITH_PARENT,
    [Gtk::Stock::OK, Gtk::Dialog::RESPONSE_NONE])
  pbar = Gtk::ProgressBar.new
  hbox = Gtk::HBox.new(false, 6)
  hbox.pack_start(pbar, true, false, 6)
  self.vbox.add(hbox)
  self.show_all
end