summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/StripViewer.py
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 /Tools/pynche/StripViewer.py
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
Diffstat (limited to 'Tools/pynche/StripViewer.py')
-rw-r--r--Tools/pynche/StripViewer.py9
1 files changed, 6 insertions, 3 deletions
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')