def main(): progress_dialog( title="Progress dialog example", text="As an examples, we walk through the filesystem and print " "all directories", run_callback=worker, ).run()
def main(): apps_clean_check = worker_apps core_clean_check = worker_core progress_dialog(title='JMK OS 2.0', text='Checking applications...', run_callback=apps_clean_check) progress_dialog(title='JMK OS 2.0', text='Checking system...', run_callback=core_clean_check)
def main(): progress_dialog( title='Progress dialog example', text='As an examples, we walk through the filesystem and print ' 'all directories', run_callback=worker).run()
from time import sleep from prompt_toolkit.shortcuts import message_dialog, progress_dialog def simple_callback(set_percentage_function, log_text_function): for counter in range(0, 101, 5): log_text_function("Pocitam: {counter}\n".format(counter=counter)) set_percentage_function(counter) sleep(0.5) sleep(2) response = progress_dialog( title="Výpočet", text="Probíhá výpočet, prosím čekejte", run_callback=simple_callback, )
from time import sleep from prompt_toolkit.shortcuts import message_dialog, progress_dialog def simple_callback(set_percentage_function, log_text_function): for counter in range(0, 101, 5): log_text_function("Pocitam: {counter}\n".format(counter=counter)) set_percentage_function(counter) sleep(0.5) sleep(2) response = progress_dialog(title='Výpočet', text='Probíhá výpočet, prosím čekejte', run_callback=simple_callback)
def main(): progress_dialog( title='Progress dialog example', text='As an examples, we walk through the filesystem and print ' 'all directories', run_callback=worker)