Esempio n. 1
0
    def add_section(self, title, description=None):
        "Adds an input section to the dialog"

        section = ui.InputSection(title, description, self.sizegroup)
        self.vbox.pack_start(section)

        return section
Esempio n. 2
0
    def add_widget(self, title, widget):
        "Adds a widget to the file selection"

        if self.inputsection == None:
            self.inputsection = ui.InputSection()
            self.set_extra_widget(self.inputsection)

        self.inputsection.append_widget(title, widget)
Esempio n. 3
0
    def __init__(self, parent, title, text, stock=gtk.STOCK_OK):
        Message.__init__(self, parent, title, text,
                         gtk.STOCK_DIALOG_AUTHENTICATION,
                         ((gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL),
                          (stock, gtk.RESPONSE_OK)))

        self.entries = []

        self.sect_passwords = ui.InputSection()
        self.contents.pack_start(self.sect_passwords)