3 class MultiStatusBar(Frame
):
5 def __init__(self
, master
=None, **kw
):
8 Frame
.__init
__(self
, master
, **kw
)
11 def set_label(self
, name
, text
='', side
=LEFT
):
12 if not self
.labels
.has_key(name
):
13 label
= Label(self
, bd
=1, relief
=SUNKEN
, anchor
=W
)
15 self
.labels
[name
] = label
17 label
= self
.labels
[name
]
18 label
.config(text
=text
)
25 a
.set_label("one", "hello")
26 a
.set_label("two", "world")
27 a
.pack(side
=BOTTOM
, fill
=X
)
31 if __name__
== '__main__':