#NEWLINE# def __init__( self , slide , machine , x = None , y = None , h_pos = None , v_pos = None , layer = 0 , **kwargs ) : #NEWLINE# #INDENT# super ( EnteredChars , self ) . __init__ ( slide , x , y , h_pos , v_pos , layer ) #NEWLINE# self . fonts = machine . display . fonts #NEWLINE# self . slide = y #NEWLINE# self . machine = machine #NEWLINE# self . layer = layer #NEWLINE# self . config = kwargs #NEWLINE# self . cursor_element = None #NEWLINE# if ( 'character_picker' not in self . config ) : #NEWLINE# #INDENT# self . config [ 'character_picker' ] = 'character_picker' #NEWLINE# #UNINDENT# if ( 'cursor_char' not in self . config ) : #NEWLINE# #INDENT# self . config [ 'cursor_char' ] = '_' #NEWLINE# #UNINDENT# if ( 'cursor_offset_x' not in self . config ) : #NEWLINE# #INDENT# self . config [ 'cursor_offset_x' ] = 0 #NEWLINE# #UNINDENT# if ( 'cursor_offset_y' not in self . config ) : #NEWLINE# #INDENT# self . config [ 'cursor_offset_y' ] = 0 #NEWLINE# #UNINDENT# self . adjust_colors ( ** self . config ) #NEWLINE# self . config [ 'color' ] = self . adjusted_color #NEWLINE# self . config [ 'bg_color' ] = self . adjusted_bg_color #NEWLINE# self . machine . events . add_handler ( ( ( 'machine_var_' + self . config [ 'character_picker' ] ) + '_chars_entered' ) , self . render ) #NEWLINE# self . render ( )