Ejemplo n.º 1
0
def ensure_package_sources():
    msg =_("""
we need to modify your software sources,
do you want to let lazyscripts modify your software sources?
""")
    if query_yes_no (msg):
        add_official_repos.main ()
    else:
        show_error (_('Lazyscripts will not change your settings') +
                    _('please ensure your software sources right\n\n') +
                    _('comment: please enable main, universe, ') +
                    _('multiverse and restricted section'))

        # update GUI
        while gtk.events_pending ():
           gtk.main_iteration ()
        os.system (syscmds.repo_config);
Ejemplo n.º 2
0
 def confirm_close(self):
     if self.complete or query_yes_no(_('do you want to quit lazyscripts?'), self.win):
         gtk.main_quit()
         return True
     return False