diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2001-07-14 01:20:05 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2001-07-14 01:20:05 (GMT) |
commit | f61eb4298853f9dc634dbb5d3a14a9dca9dfc2ba (patch) | |
tree | b0a9ab68705ee77c96bb9979ee7db433dbb27fc4 /Lib/idlelib | |
parent | fcd44ec5ea3b0040ad1508158175dfcda7e71a0f (diff) | |
download | cpython-f61eb4298853f9dc634dbb5d3a14a9dca9dfc2ba.zip cpython-f61eb4298853f9dc634dbb5d3a14a9dca9dfc2ba.tar.gz cpython-f61eb4298853f9dc634dbb5d3a14a9dca9dfc2ba.tar.bz2 |
py-cvs-rel2_1 (Rev 1.3) merge - whitespace normalization
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/Separator.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/idlelib/Separator.py b/Lib/idlelib/Separator.py index 2645e57..7145559 100644 --- a/Lib/idlelib/Separator.py +++ b/Lib/idlelib/Separator.py @@ -1,7 +1,7 @@ from Tkinter import * class Separator: - + def __init__(self, master, orient, min=10, thickness=5, bg=None): self.min = max(1, min) self.thickness = max(1, thickness) @@ -10,14 +10,14 @@ class Separator: self.dim = "width" self.dir = "x" self.cursor = "sb_h_double_arrow" - elif orient in ("v", "vertical"): - self.side = "top" - self.dim = "height" - self.dir = "y" + elif orient in ("v", "vertical"): + self.side = "top" + self.dim = "height" + self.dir = "y" self.cursor = "sb_v_double_arrow" - else: - raise ValueError, "Separator: orient should be h or v" - self.winfo_dim = "winfo_" + self.dim + else: + raise ValueError, "Separator: orient should be h or v" + self.winfo_dim = "winfo_" + self.dim self.master = master = Frame(master) master.pack(expand=1, fill="both") self.f1 = Frame(master) |