# File gtk/sample/gtk-demo/dialog.rb, line 15
    def initialize
      @count = 1
      
      super('Dialogs')
      set_border_width(8)
      
      frame = Gtk::Frame.new('Dialogs')
      add(frame)
      
      vbox = Gtk::VBox.new(false, 8)
      vbox.set_border_width(8)
      frame.add(vbox)
      
      # Standard message dialog
      hbox = Gtk::HBox.new(false, 0)
      vbox.pack_start(hbox, false, false, 0)
      button = Gtk::Button.new('_Message Dialog', true)
      button.signal_connect('clicked') do
        message_dialog_clicked
      end
      hbox.pack_start(button, false, false, 0)

      vbox.pack_start(Gtk::HSeparator.new, false, false, 0)

      # Interactive dialog
      hbox = Gtk::HBox.new(false, 8)
      vbox.pack_start(hbox, false, false, 0)
      vbox2 = Gtk::VBox.new(false, 0)

      button = Gtk::Button.new('_Interactive Dialog')
      button.signal_connect('clicked') do
        interactive_dialog_clicked
      end
      hbox.pack_start(vbox2, false, false, 0)
      vbox2.pack_start(button, false, false, 0)

      table = Gtk::Table.new(2, 2, false)
      table.set_row_spacings(4)
      table.set_column_spacings(4)
      hbox.pack_start(table, false, false, 0)

      label = Gtk::Label.new('_Entry 1', true)
      table.attach_defaults(label, 0, 1, 0, 1)

      @entry1 = Gtk::Entry.new
      table.attach_defaults(@entry1, 1, 2, 0, 1)
      label.set_mnemonic_widget(@entry1)

      label = Gtk::Label.new('E_ntry 2', true)

      table.attach_defaults(label, 0, 1, 1, 2)

      @entry2 = Gtk::Entry.new
      table.attach_defaults(@entry2, 1, 2, 1, 2)
      label.set_mnemonic_widget(@entry2)
    end