#NEWLINE# def __init__( self , switchboard , master = None ) : #NEWLINE# #INDENT# self . __sb = switchboard #NEWLINE# optiondb = switchboard . optiondb ( ) #NEWLINE# frame = Frame ( master , relief = RAISED , borderwidth = 1 ) #NEWLINE# frame . grid ( row = 1 , column = 0 , columnspan = 2 , sticky = 'NSEW' ) #NEWLINE# uwd = self . __uwdvar = BooleanVar ( ) #NEWLINE# uwd . set ( optiondb . get ( 'UPWHILEDRAG' , 0 ) ) #NEWLINE# hexp = self . __hexpvar = BooleanVar ( ) #NEWLINE# hexp . set ( optiondb . get ( 'HEXSTRIP' , 0 ) ) #NEWLINE# frame1 = Frame ( frame ) #NEWLINE# frame1 . pack ( expand = YES , fill = BOTH ) #NEWLINE# self . __reds = StripWidget ( switchboard , frame1 , generator = constant_cyan_generator , axis = 0 , label = 'Red Variations' , uwdvar = uwd , hexvar = hexp ) #NEWLINE# self . __greens = StripWidget ( switchboard , frame1 , generator = constant_magenta_generator , axis = 1 , label = 'Green Variations' , uwdvar = uwd , hexvar = hexp ) #NEWLINE# self . __blues = StripWidget ( switchboard , frame1 , generator = constant_yellow_generator , axis = 2 , label = 'Blue Variations' , uwdvar = uwd , hexvar = hexp ) #NEWLINE# frame2 = Frame ( frame ) #NEWLINE# frame2 . pack ( expand = YES , fill = BOTH ) #NEWLINE# frame2 . columnconfigure ( 0 , weight = 20 ) #NEWLINE# frame2 . columnconfigure ( 2 , weight = 20 ) #NEWLINE# padx = 8 #NEWLINE# blackbtn = Button ( frame2 , text = 'Black' , command = self . __toblack ) #NEWLINE# blackbtn . grid ( row = 0 , column = 0 , rowspan = 2 , sticky = W , padx = padx ) #NEWLINE# uwdbtn = Checkbutton ( frame2 , text = 'Update while dragging' , variable = uwd ) #NEWLINE# uwdbtn . grid ( row = 0 , column = 1 , sticky = W ) #NEWLINE# hexbtn = Checkbutton ( frame2 , text = 'Hexadecimal' , variable = hexp , command = self . __togglehex ) #NEWLINE# hexbtn . grid ( row = 1 , column = 1 , sticky = W ) #NEWLINE# whitebtn = Button ( frame2 , text = 'White' , command = self . __towhite ) #NEWLINE# whitebtn . grid ( row = 0 , column = 2 , rowspan = 2 , sticky = E , padx = padx )