summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/StripViewer.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-01 14:26:04 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-01 14:26:04 (GMT)
commit65f0b6be47d981db57e26dcd07f9dc1fd775d2ab (patch)
treea168b69f3f0c427ec664bcd9de386adee094eb02 /Tools/pynche/StripViewer.py
parent9190046289af6397d6482fb646878a074bf38c05 (diff)
downloadcpython-65f0b6be47d981db57e26dcd07f9dc1fd775d2ab.zip
cpython-65f0b6be47d981db57e26dcd07f9dc1fd775d2ab.tar.gz
cpython-65f0b6be47d981db57e26dcd07f9dc1fd775d2ab.tar.bz2
Add a nice divider
Diffstat (limited to 'Tools/pynche/StripViewer.py')
-rw-r--r--Tools/pynche/StripViewer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/pynche/StripViewer.py b/Tools/pynche/StripViewer.py
index 3955544..db825e3 100644
--- a/Tools/pynche/StripViewer.py
+++ b/Tools/pynche/StripViewer.py
@@ -265,8 +265,8 @@ class StripViewer:
def __init__(self, switchboard, parent=None):
self.__sb = switchboard
# create a frame inside the parent
- self.__frame = Frame(parent, relief=GROOVE, borderwidth=2)
- self.__frame.pack()
+ self.__frame = Frame(parent) #, relief=GROOVE, borderwidth=2)
+ self.__frame.grid(row=1, column=0, columnspan=2, sticky='EW')
uwd = BooleanVar()
self.__reds = StripWidget(switchboard, self.__frame,
generator=constant_cyan_generator,
@@ -289,6 +289,11 @@ class StripViewer:
text='Update while dragging',
variable=uwd)
self.__uwd.pack()
+ self.__div = Frame(self.__frame,
+ height=2,
+ borderwidth=2,
+ relief=RAISED)
+ self.__div.pack(expand=1, fill=X)
def update_yourself(self, red, green, blue):
self.__reds.update_yourself(red, green, blue)