summaryrefslogtreecommitdiff
path: root/Lib/idlelib/statusbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/statusbar.py')
-rw-r--r--Lib/idlelib/statusbar.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/idlelib/statusbar.py b/Lib/idlelib/statusbar.py
index c093920be4..a65bfb3393 100644
--- a/Lib/idlelib/statusbar.py
+++ b/Lib/idlelib/statusbar.py
@@ -17,15 +17,14 @@ class MultiStatusBar(Frame):
label.config(width=width)
label.config(text=text)
-def _multistatus_bar(parent):
- import re
+def _multistatus_bar(parent): # htest #
from tkinter import Toplevel, Frame, Text, Button
top = Toplevel(parent)
- width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
- top.geometry("+%d+%d" %(x, y + 150))
+ x, y = map(int, parent.geometry().split('+')[1:])
+ top.geometry("+%d+%d" %(x, y + 175))
top.title("Test multistatus bar")
frame = Frame(top)
- text = Text(frame)
+ text = Text(frame, height=5, width=40)
text.pack()
msb = MultiStatusBar(frame)
msb.set_label("one", "hello")