MCPcopy Index your code
hub / github.com/python/cpython / set_label

Method set_label

Lib/idlelib/statusbar.py:10–19  ·  view source on GitHub ↗
(self, name, text='', side='left', width=0)

Source from the content-addressed store, hash-verified

8 self.labels = {}
9
10 def set_label(self, name, text='', side='left', width=0):
11 if name not in self.labels:
12 label = Label(self, borderwidth=0, anchor='w')
13 label.pack(side=side, pady=0, padx=4)
14 self.labels[name] = label
15 else:
16 label = self.labels[name]
17 if width != 0:
18 label.config(width=width)
19 label.config(text=text)
20
21
22def _multistatus_bar(parent): # htest #

Callers 5

_multistatus_barFunction · 0.95
test_set_labelMethod · 0.95
changeFunction · 0.80
set_status_barMethod · 0.80
set_line_and_columnMethod · 0.80

Calls 3

LabelClass · 0.90
packMethod · 0.45
configMethod · 0.45

Tested by 1

test_set_labelMethod · 0.76