def initialize_statusframe(self):
"""
Initialize the frame and statusbar occupying the bottom
"""
frame = self.bottompart
frame.pb = ttk.Progressbar(frame,
orient='horizontal',
mode='determinate',
maximum=100)
frame.pb.pack(fill='both',expand=True,side='top')
frame.lab = Tkinter.Label(frame,text=u"Awaiting input options")
frame.lab.pack(in_=frame.pb,expand=True)
#sys.stdout = StdoutToLabel(frame.lab, progressbar=frame.pb)
sys.stdout = StdoutToLabel(frame.lab,
progressbar=frame.pb,
width=frame.cget('width'))
评论列表
文章目录