mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Added an extra frame in widget heirarchy in case I want to add
separators later
This commit is contained in:
parent
f984a65267
commit
d7d4725dba
2 changed files with 7 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue