mirror of https://github.com/python/cpython
Added an extra frame in widget heirarchy in case I want to add
separators later
This commit is contained in:
parent
f984a65267
commit
d7d4725dba
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue