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

Function _multistatus_bar

Lib/idlelib/statusbar.py:22–44  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

20
21
22def _multistatus_bar(parent): # htest #
23 from tkinter import Toplevel, Text
24 from tkinter.ttk import Frame, Button
25 top = Toplevel(parent)
26 x, y = map(int, parent.geometry().split('+')[1:])
27 top.geometry("+%d+%d" %(x, y + 175))
28 top.title("Test multistatus bar")
29
30 frame = Frame(top)
31 text = Text(frame, height=5, width=40)
32 text.pack()
33 msb = MultiStatusBar(frame)
34 msb.set_label("one", "hello")
35 msb.set_label("two", "world")
36 msb.pack(side='bottom', fill='x')
37
38 def change():
39 msb.set_label("one", "foo")
40 msb.set_label("two", "bar")
41
42 button = Button(top, text="Update status", command=change)
43 button.pack(side='bottom')
44 frame.pack()
45
46
47if __name__ == '__main__':

Callers

nothing calls this directly

Calls 9

set_labelMethod · 0.95
ToplevelClass · 0.90
FrameClass · 0.90
TextClass · 0.90
ButtonClass · 0.90
MultiStatusBarClass · 0.85
splitMethod · 0.45
titleMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…