Esempio n. 1
0
 def __init__(self, main_window=None):
     EntryDialog.__init__(self, main_window,
             title=_("Run eximstats"),
             label_text=_("Arguments to eximstats:"))
     self._statusbar = main_window.statusbar
     self.all_logs = gtk.CheckButton(_("Scan all logfiles"))
     self.all_logs.set_active(True)
     self.vbox.add(self.all_logs)
Esempio n. 2
0
    def __init__(self, main_window=None, text=""):
        EntryDialog.__init__(self, main_window,
                title=_("Run exigrep"), label_text=_("Search for:"))
        self._main_win = main_window
        self._statusbar = main_window.statusbar

        self.entry.set_text(text)
        self.regexp = gtk.CheckButton(_("Parse as a regular expression"))
        self.regexp.set_active(True)
        self.all_logs = gtk.CheckButton(_("Scan all logfiles"))
        self.all_logs.set_active(True)

        checkbuttons = gtk.VBox()
        checkbuttons.add(self.regexp)
        checkbuttons.add(self.all_logs)
        self.vbox.add(checkbuttons)