Kaydet (Commit) d7d4725d authored tarafından Barry Warsaw's avatar Barry Warsaw

Added an extra frame in widget heirarchy in case I want to add

separators later
üst f984a652
......@@ -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)
......
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment