File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class ChipViewer:
5353 def __init__ (self , switchboard , parent = None ):
5454 self .__sb = switchboard
5555 self .__frame = Frame (parent )
56- self .__frame .pack ()
56+ self .__frame .pack (expand = YES , fill = BOTH )
5757 # create the chip that will display the currently selected color
5858 # exactly
5959 self .__sframe = Frame (self .__frame )
Original file line number Diff line number Diff line change @@ -267,17 +267,20 @@ def set_update_while_dragging(self, flag):
267267class StripViewer :
268268 def __init__ (self , switchboard , parent = None ):
269269 self .__sb = switchboard
270- self .__reds = StripWidget (switchboard , parent ,
270+ # create a frame inside the parent
271+ self .__frame = Frame (parent )
272+ self .__frame .pack ()
273+ self .__reds = StripWidget (switchboard , self .__frame ,
271274 generator = constant_cyan_generator ,
272275 axis = 0 ,
273276 label = 'Red Variations' )
274277
275- self .__greens = StripWidget (switchboard , parent ,
278+ self .__greens = StripWidget (switchboard , self . __frame ,
276279 generator = constant_magenta_generator ,
277280 axis = 1 ,
278281 label = 'Green Variations' )
279282
280- self .__blues = StripWidget (switchboard , parent ,
283+ self .__blues = StripWidget (switchboard , self . __frame ,
281284 generator = constant_yellow_generator ,
282285 axis = 2 ,
283286 label = 'Blue Variations' )
You can’t perform that action at this time.
0 commit comments