diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-01-17 08:48:39 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-01-17 08:48:39 (GMT) |
commit | 70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7 (patch) | |
tree | cf47b67db3753288cfd9fa2adc45e7c5cd2f8741 /Tools/idle/Separator.py | |
parent | a88854059309667092000da55d4d5a5804267e9f (diff) | |
download | cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.zip cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.tar.gz cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Tools/idle/Separator.py')
-rw-r--r-- | Tools/idle/Separator.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Tools/idle/Separator.py b/Tools/idle/Separator.py index 2645e57..7145559 100644 --- a/Tools/idle/Separator.py +++ b/Tools/idle/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) |