def color_config(text):
 theme = idleConf.CurrentTheme()
 normal_colors = idleConf.GetHighlight(theme, 'normal')
 cursor_color = idleConf.GetHighlight(theme, 'cursor', fgBg='fg')
 select_colors = idleConf.GetHighlight(theme, 'hilite')
 text.config(foreground=normal_colors['foreground'], background=normal_colors['background'], insertbackground=cursor_color, selectforeground=select_colors['foreground'], selectbackground=select_colors['background'], inactiveselectbackground=select_colors['background'])

def color_config ( text ) : theme = idleConf . CurrentTheme ( ) normal_colors = idleConf . GetHighlight ( theme , 'normal' ) cursor_color = idleConf . GetHighlight ( theme , 'cursor' , fgBg = 'fg' ) select_colors = idleConf . GetHighlight ( theme , 'hilite' ) text . config ( foreground = normal_colors [ 'foreground' ] , background = normal_colors [ 'background' ] , insertbackground = cursor_color , selectforeground = select_colors [ 'foreground' ] , selectbackground = select_colors [ 'background' ] , inactiveselectbackground = select_colors [ 'background' ] )
set color opitons of text widget .