Class: GtkApp::Dialog::Progress
- Inherits:
-
Gtk::Dialog
- Object
- Gtk::Dialog
- GtkApp::Dialog::Progress
- Defined in:
- lib/gtk_app/dialog/progress.rb
Instance Method Summary collapse
-
#initialize(parent) ⇒ Progress
constructor
A new instance of Progress.
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]) = Gtk::ProgressBar.new hbox = Gtk::HBox.new(false, 6) hbox.pack_start(, true, false, 6) self.vbox.add(hbox) self.show_all end |