diff options
-rw-r--r-- | Tools/pynche/ChipViewer.py | 2 | ||||
-rw-r--r-- | Tools/pynche/StripViewer.py | 9 |
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') |