summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-09-29 17:36:43 (GMT)
committerBarry Warsaw <barry@python.org>1998-09-29 17:36:43 (GMT)
commitd7d4725dbafc0a2cb46abe64f8fdbf848b8a77e9 (patch)
treea3a70bb7de2201e1d5dc19d57675d9623fafab85
parentf984a6526711513e1af035d2fcee545c51ab51fe (diff)
downloadcpython-d7d4725dbafc0a2cb46abe64f8fdbf848b8a77e9.zip
cpython-d7d4725dbafc0a2cb46abe64f8fdbf848b8a77e9.tar.gz
cpython-d7d4725dbafc0a2cb46abe64f8fdbf848b8a77e9.tar.bz2
Added an extra frame in widget heirarchy in case I want to add
separators later
-rw-r--r--Tools/pynche/ChipViewer.py2
-rw-r--r--Tools/pynche/StripViewer.py9
2 files changed, 7 insertions, 4 deletions
diff --git a/Tools/pynche/ChipViewer.py b/Tools/pynche/ChipViewer.py
index b4dfa85..190cf09 100644
--- a/Tools/pynche/ChipViewer.py
+++ b/Tools/pynche/ChipViewer.py
@@ -53,7 +53,7 @@ class ChipViewer:
def __init__(self, switchboard, parent=None):
self.__sb = switchboard
self.__frame = Frame(parent)
- self.__frame.pack()
+ self.__frame.pack(expand=YES, fill=BOTH)
# create the chip that will display the currently selected color
# exactly
self.__sframe = Frame(self.__frame)
diff --git a/Tools/pynche/StripViewer.py b/Tools/pynche/StripViewer.py
index 5c38c0e..98074c1 100644
--- a/Tools/pynche/StripViewer.py
+++ b/Tools/pynche/StripViewer.py
@@ -267,17 +267,20 @@ class StripWidget:
class StripViewer:
def __init__(self, switchboard, parent=None):
self.__sb = switchboard
- self.__reds = StripWidget(switchboard, parent,
+ # create a frame inside the parent
+ self.__frame = Frame(parent)
+ self.__frame.pack()
+ self.__reds = StripWidget(switchboard, self.__frame,
generator=constant_cyan_generator,
axis=0,
label='Red Variations')
- self.__greens = StripWidget(switchboard, parent,
+ self.__greens = StripWidget(switchboard, self.__frame,
generator=constant_magenta_generator,
axis=1,
label='Green Variations')
- self.__blues = StripWidget(switchboard, parent,
+ self.__blues = StripWidget(switchboard, self.__frame,
generator=constant_yellow_generator,
axis=2,
label='Blue Variations')