Exemple #1
0
 def setup_widgets (self):
     self.pd = de.PreferencesDialog(self.opts,option_label=None,value_label=None,
                               label=_('PDF Options'),
                               )
     self.pd.hbox.pack_start(self.page_drawer, fill=True, expand=True,
                             padding=0)
     self.table = self.pd.table
Exemple #2
0
 def setup_dialog(self, force=False):
     if force or not self.prefs.get('emailer_dont_ask', False):
         d = de.PreferencesDialog(
             options=self.option_list,
             option_label=_("Email Options"),
             value_label="",
             dont_ask_cb=self.dont_ask_cb,
             dont_ask_custom_text=_("Don't ask before sending e-mail."))
         retlist = d.run()
         if retlist:
             for o in retlist:
                 k = o[0]
                 v = o[1]
                 pref = self.options[k][0]
                 self.email_options[pref] = v
                 self.prefs[pref] = v