summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/ChipViewer.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/ChipViewer.py
parent9190046289af6397d6482fb646878a074bf38c05 (diff)
downloadcpython-65f0b6be47d981db57e26dcd07f9dc1fd775d2ab.zip
cpython-65f0b6be47d981db57e26dcd07f9dc1fd775d2ab.tar.gz
cpython-65f0b6be47d981db57e26dcd07f9dc1fd775d2ab.tar.bz2
Add a nice divider
Diffstat (limited to 'Tools/pynche/ChipViewer.py')
-rw-r--r--Tools/pynche/ChipViewer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/pynche/ChipViewer.py b/Tools/pynche/ChipViewer.py
index 0f89408..7f9ebc7 100644
--- a/Tools/pynche/ChipViewer.py
+++ b/Tools/pynche/ChipViewer.py
@@ -52,8 +52,8 @@ class ChipWidget:
class ChipViewer:
def __init__(self, switchboard, parent=None):
self.__sb = switchboard
- self.__frame = Frame(parent, relief=GROOVE, borderwidth=2)
- self.__frame.pack()
+ self.__frame = Frame(parent) #, relief=GROOVE, borderwidth=2)
+ self.__frame.grid(row=3, column=0)
# create the chip that will display the currently selected color
# exactly
self.__sframe = Frame(self.__frame)
@@ -66,6 +66,11 @@ class ChipViewer:
self.__nearest = ChipWidget(self.__nframe, text='Nearest',
presscmd = self.__buttonpress,
releasecmd = self.__buttonrelease)
+ self.__div = Frame(self.__frame,
+ width=2,
+ borderwidth=2,
+ relief=RAISED)
+ self.__div.grid(row=0, column=2, sticky='NS', padx=5)
def update_yourself(self, red, green, blue):
# TBD: should exactname default to X11 color name if their is an exact