From: Kurt B. Kaiser Date: Sat, 14 Jul 2001 01:20:05 +0000 (+0000) Subject: py-cvs-rel2_1 (Rev 1.3) merge - whitespace normalization X-Git-Tag: v2.2a3~1198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f61eb4298853f9dc634dbb5d3a14a9dca9dfc2ba;p=thirdparty%2FPython%2Fcpython.git py-cvs-rel2_1 (Rev 1.3) merge - whitespace normalization --- diff --git a/Lib/idlelib/Separator.py b/Lib/idlelib/Separator.py index 2645e57a37e4..7145559c7b97 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)