diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-10 17:28:10 -0400 |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-10 17:28:10 -0400 |
| commit | a748032653aec69596257f59f27d8e1945fece9d (patch) | |
| tree | 25d06528db043b0e0039f5a1de73d60e304518cd /Lib/idlelib/statusbar.py | |
| parent | cd5e388c39563c7bd1122ec3360fd5ed60952668 (diff) | |
| download | cpython-git-a748032653aec69596257f59f27d8e1945fece9d.tar.gz | |
Refine geometry of idlelib htests (and a few other fix-ups).
Diffstat (limited to 'Lib/idlelib/statusbar.py')
| -rw-r--r-- | Lib/idlelib/statusbar.py | 9 |
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") |
