1class StatusBar(Frame):
2
3 def __init__(self, master):
4 Frame.__init__(self, master)
5 self.label = Label(self, bd=1, relief=SUNKEN, anchor=W)
6 self.label.pack(fill=X)
7
8 def set(self, format, *args):
9 self.label.config(text=format % args)
10 self.label.update_idletasks()
11
12 def clear(self):
13 self.label.config(text="")
14 self.label.update_idletasks()