#NEWLINE# def __init__( self , switchboard , master = None ) : #NEWLINE# #INDENT# self . __sb = switchboard #NEWLINE# optiondb = switchboard . optiondb ( ) #NEWLINE# self . __hexp = BooleanVar ( ) #NEWLINE# self . __hexp . set ( optiondb . get ( 'HEXTYPE' , 0 ) ) #NEWLINE# self . __uwtyping = BooleanVar ( ) #NEWLINE# self . __uwtyping . set ( optiondb . get ( 'UPWHILETYPE' , 0 ) ) #NEWLINE# self . __frame = Frame ( master , relief = RAISED , borderwidth = 1 ) #NEWLINE# self . __frame . grid ( row = 3 , column = 1 , sticky = 'NSEW' ) #NEWLINE# self . __xl = Label ( self . __frame , text = 'Red:' ) #NEWLINE# self . __xl . grid ( row = 0 , column = 0 , sticky = E ) #NEWLINE# subframe = Frame ( self . __frame ) #NEWLINE# subframe . grid ( row = 0 , column = 1 ) #NEWLINE# self . __xox = Label ( self , text = '0x' ) #NEWLINE# self . __xox . grid ( row = 0 , column = 0 , sticky = E ) #NEWLINE# self . __xox [ 'font' ] = 'courier' #NEWLINE# self . __x = Entry ( subframe , width = 3 ) #NEWLINE# self . __x . grid ( row = 0 , column = 1 ) #NEWLINE# self . __x . bindtags ( ( self . __x . bindtags ( ) + ( 'Normalize' , 'Update' ) ) ) #NEWLINE# self . __x . bind_class ( 'Normalize' , '<Key>' , self . __normalize ) #NEWLINE# self . __x . bind_class ( 'Update' , '<Key>' , self . __maybeupdate ) #NEWLINE# self . __yl = Label ( self . __frame , text = 'Green:' ) #NEWLINE# self . __yl . grid ( row = 1 , column = 0 , sticky = E ) #NEWLINE# subframe = Frame ( self . __frame ) #NEWLINE# subframe . grid ( row = 1 , column = 1 ) #NEWLINE# self . __yox = Label ( subframe , text = '0x' ) #NEWLINE# self . __yox . grid ( row = 0 , column = 0 , sticky = E ) #NEWLINE# self . __yox [ 'font' ] = 'courier' #NEWLINE# self . __y = Entry ( subframe , width = 3 ) #NEWLINE# self . __y . grid ( row = 0 , column = 1 ) #NEWLINE# self . __y . bindtags ( ( self . __y . bindtags ( ) + ( 'Normalize' , 'Update' ) ) ) #NEWLINE# self . __zl = Label ( self . __frame , text = 'Blue:' ) #NEWLINE# self . __zl . grid ( row = 2 , column = 0 , sticky = E ) #NEWLINE# subframe = Frame ( self . __frame ) #NEWLINE# subframe . grid ( row = 2 , column = 1 ) #NEWLINE# self . __zox = Label ( subframe , text = '0x' ) #NEWLINE# self . __zox . grid ( row = 0 , column = 0 , sticky = E ) #NEWLINE# self . __zox [ 'font' ] = 'courier' #NEWLINE# self . __z = Entry ( subframe , width = 3 ) #NEWLINE# self . __z . grid ( row = 0 , column = 1 ) #NEWLINE# self . __z . bindtags ( ( self . __z . bindtags ( ) + ( 'Normalize' , 'Update' ) ) ) #NEWLINE# self . __uwt = Checkbutton ( self . __frame , text = 'Update while typing' , variable = self . __uwtyping ) #NEWLINE# self . __uwt . grid ( row = 3 , column = 0 , columnspan = 2 , sticky = W ) #NEWLINE# self . __hex = Checkbutton ( self . __frame , text = 'Hexadecimal' , variable = self . __hexp , command = self . __togglehex ) #NEWLINE# self . __hex . grid ( row = 4 , column = 0 , columnspan = 2 , sticky = W )