摘要:
1 from Tkinter import * 2 import ttk 3 import threading 4 import random 5 import time 6 7 class PgBarFrm(Frame): 8 def __init__(self, root, max_len): 9 self.root = root10 Frame.__init__(self, root)11 12 self.pb_val = IntVar() # pbar variable13 self.pb_max = max... 阅读全文
摘要:
GUI用的是Tkinter,在主线程执行,子线程是工作线程"""ttk.Progressbar demo, with multi-threadingauthor: nn0p data: 2013.04.24"""from Tkinter import *import ttkimport threadingimport randomimport timeclass UIThread: def __init__(self, root, count=10): self.count = count self.value = 0 self.b_ 阅读全文