标签:gre mic time gui alt ima range win size
import PySimpleGUI as sg layout = [[sg.Text(‘任务完成进度‘)], [sg.ProgressBar(1000, orientation=‘h‘, size=(20, 20), key=‘progressbar‘)], [sg.Cancel()]] window = sg.Window(‘机器人执行进度‘, layout) progress_bar = window[‘progressbar‘] for i in range(1000): event, values = window.read(timeout=10) if event == ‘Cancel‘ or event is None: break progress_bar.UpdateBar(i + 1) window.close()
标签:gre mic time gui alt ima range win size
原文地址:https://www.cnblogs.com/angelyan/p/12221670.html