Esempio n. 1
0
def location():
    folder = dialog.browse(0,
                           utils.get_string(32091),
                           'files',
                           defaultt=backup_location)
    if folder:
        utils.set_setting('backup.location', folder)
def _warn():
    choice = dialog.yesno('AutoWidget', utils.get_string(32058),
                          yeslabel=utils.get_string(32059),
                          nolabel=utils.get_string(32060))
    if choice < 1:
        utils.set_setting('context.advanced', 'false')
        utils.set_setting('context.warning', 'true')
        advanced = False
        warning = True
    else:
        utils.set_setting('context.warning', 'true')
        warning = True
Esempio n. 3
0
def _warn():
    choice = dialog.yesno(
        "AutoWidget",
        utils.get_string(32058),
        yeslabel=utils.get_string(32059),
        nolabel=utils.get_string(32060),
    )
    if choice < 1:
        utils.set_setting("context.advanced", "false")
        utils.set_setting("context.warning", "true")
        advanced = False
        warning = True
    else:
        utils.set_setting("context.warning", "true")
        warning = True