( self )
Can't seem to get a foucs highlight around some of the controls.
		So I'm using color changes to show focus/tab stops.
		Also, the Scale does not seem to get focus by clicking on it
		Need to force focus when the user clicks on it
Can't seem to get a foucs highlight around some of the controls.
		So I'm using color changes to show focus/tab stops.
		Also, the Scale does not seem to get focus by clicking on it
		Need to force focus when the user clicks on it
Can t seem to get a foucs highlight around some of the controls . So I m using color changes to show focus / tab stops . Also the Scale does not seem to get focus by clicking on it Need to force focus when the user clicks on it
def SetControlMapping ( self ):
		#Style().configure('.', font=('Helvetica', 12)) # all
		Style().configure('RedMessage.TLabel',font=('Arial',10,"italic"),foreground='red')
		# These dont work since they're overriden by the map later on... ???
		Style().configure('Error.TEntry',background='red',foreground='white')
		Style().configure('OK.TEntry',background='white',foreground='black')
		Style().configure('DataLabel.TLabel',foreground='blue',font=('Arial',10))
		Style().configure('StatusBar.TLabel',background=self.FocusColor,relief=SUNKEN)
		Style().configure('TMenu',background='white',activeforeground='lightblue')
		'''
		Can't seem to get a foucs highlight around some of the controls.
		So I'm using color changes to show focus/tab stops.
		Also, the Scale does not seem to get focus by clicking on it
		Need to force focus when the user clicks on it
		'''
		Style().map('TPanedwindow',
			background = [
								('!active','#f0f0ff'),
							 ],
			)
		Style().map('TCombobox',
			fieldbackground = [
							  ('focus','!disabled',self.FocusColor),
							  ('!focus','active','!disabled',self.NoFocusMouseOverColor),
							  ('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
							 #('disabled','lightgray'), # Use foreground
							  ],
			foreground = [
						 ('disabled','gray'),
						 ('!disabled', 'black')
						 ],
			selectbackground = [
							   ('focus','!disabled',self.FocusColor),
							   ('!focus','active','!disabled',self.NoFocusMouseOverColor),
							   ('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
							  #('disabled','lightgray'),
							   ],
			selectforeground = [
							   ('!focus','black'),
							   ('readonly','black'),
							   ('focus','black'),
							   ('disabled','black'),
							   ('!disabled', 'black')
							   ],
				   )	# close map

		Style().map('TEntry',# This one is just for 'look and feel'
			fieldbackground = [
							  ('focus','!disabled', '!invalid' ,self.FocusColor),
							  ('!focus','active','!disabled','!invalid', self.NoFocusMouseOverColor),
							  ('!focus','!active','!disabled','!invalid',self.NoFocusNoMouseOverColor),
							  ('invalid', '#FF0000')
							 #('disabled','lightgray'),
							  ],
			foreground = [
						 ('disabled', '!invalid', 'gray'),
						 ('!disabled', '!invalid', 'black')
						 #('invalid', self.NoFocusNoMouseOverColor)
						 ],
			#background = [
						  #('focus','!disabled',self.FocusColor),
						  #('!focus','active','!disabled',self.NoFocusMouseOverColor'),
						  #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
						 ##('disabled','lightgray'),
						  #],
			#selectbackground = [
							   #('focus','!disabled',self.FocusColor),
							   #('!focus','active','!disabled',self.NoFocusMouseOverColor),
							   #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor).
							  ##('disabled','lightgray'),
							   #],
			selectforeground = [
							   ('!focus','black'),
							   ('focus','white'),
							   ],
				   ) # close map

		#Style().map('TMenubutton',# This one is just for 'look and feel'
			#fieldbackground = [
							  #('focus','!disabled',self.FocusColor),
							  #('!focus','active','!disabled',self.NoFocusMouseOverColor),
							  #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
							 ##('disabled','lightgray'),
							  #],
			#foreground = [
						 #('disabled','gray'),
						 #('!disabled', 'black')
						 #],
			#background = [
						  #('focus','!disabled',self.FocusColor),
						  #('!focus','active','!disabled',self.NoFocusMouseOverColor),
						  #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
						 ##('disabled','lightgray'),
						  #],
			#selectbackground = [
							   #('focus','!disabled',self.FocusColor),
							   #('!focus','active','!disabled',self.NoFocusMouseOverColor),
							   #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
							  ##('disabled','lightgray'),
							   #],
			#selectforeground = [
							   #('!focus','black'),
							   #('focus','white'),
							   #],
				   #) # close map

		Style().map("Horizontal.TScale",
			troughcolor = [
						  ('focus','!disabled',self.FocusColor),
						  ('!focus','active','!disabled',self.NoFocusMouseOverColor),
						  ('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
						  ('disabled','lightgray'),
						  ],
				   ) # close map

		Style().map("Vertical.TScale",
			troughcolor = [
						  ('focus','!disabled',self.FocusColor),
						  ('!focus','active','!disabled',self.NoFocusMouseOverColor),
						  ('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
						  ('disabled','lightgray'),
						  ],
				   ) # close map

		Style().map("TMenu",
			background = [
						  ('focus','!disabled',self.FocusColor),
						  ('!focus','active','!disabled',self.NoFocusMouseOverColor),
						  ('!focus','!active','!disabled',self.NoFocusNoMouseOverColor),
						  ('disabled','lightgray'),
						  ],
				   )
def SetControlMapping ( self ) : #Style().configure('.', font=('Helvetica', 12)) # all Style ( ) . configure ( 'RedMessage.TLabel' , font = ( 'Arial' , 10 , "italic" ) , foreground = 'red' ) # These dont work since they're overriden by the map later on... ??? Style ( ) . configure ( 'Error.TEntry' , background = 'red' , foreground = 'white' ) Style ( ) . configure ( 'OK.TEntry' , background = 'white' , foreground = 'black' ) Style ( ) . configure ( 'DataLabel.TLabel' , foreground = 'blue' , font = ( 'Arial' , 10 ) ) Style ( ) . configure ( 'StatusBar.TLabel' , background = self . FocusColor , relief = SUNKEN ) Style ( ) . configure ( 'TMenu' , background = 'white' , activeforeground = 'lightblue' ) Style ( ) . map ( 'TPanedwindow' , background = [ ( '!active' , '#f0f0ff' ) , ] , ) Style ( ) . map ( 'TCombobox' , fieldbackground = [ ( 'focus' , '!disabled' , self . FocusColor ) , ( '!focus' , 'active' , '!disabled' , self . NoFocusMouseOverColor ) , ( '!focus' , '!active' , '!disabled' , self . NoFocusNoMouseOverColor ) , #('disabled','lightgray'), # Use foreground ] , foreground = [ ( 'disabled' , 'gray' ) , ( '!disabled' , 'black' ) ] , selectbackground = [ ( 'focus' , '!disabled' , self . FocusColor ) , ( '!focus' , 'active' , '!disabled' , self . NoFocusMouseOverColor ) , ( '!focus' , '!active' , '!disabled' , self . NoFocusNoMouseOverColor ) , #('disabled','lightgray'), ] , selectforeground = [ ( '!focus' , 'black' ) , ( 'readonly' , 'black' ) , ( 'focus' , 'black' ) , ( 'disabled' , 'black' ) , ( '!disabled' , 'black' ) ] , ) # close map Style ( ) . map ( 'TEntry' , # This one is just for 'look and feel' fieldbackground = [ ( 'focus' , '!disabled' , '!invalid' , self . FocusColor ) , ( '!focus' , 'active' , '!disabled' , '!invalid' , self . NoFocusMouseOverColor ) , ( '!focus' , '!active' , '!disabled' , '!invalid' , self . NoFocusNoMouseOverColor ) , ( 'invalid' , '#FF0000' ) #('disabled','lightgray'), ] , foreground = [ ( 'disabled' , '!invalid' , 'gray' ) , ( '!disabled' , '!invalid' , 'black' ) #('invalid', self.NoFocusNoMouseOverColor) ] , #background = [ #('focus','!disabled',self.FocusColor), #('!focus','active','!disabled',self.NoFocusMouseOverColor'), #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor), ##('disabled','lightgray'), #], #selectbackground = [ #('focus','!disabled',self.FocusColor), #('!focus','active','!disabled',self.NoFocusMouseOverColor), #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor). ##('disabled','lightgray'), #], selectforeground = [ ( '!focus' , 'black' ) , ( 'focus' , 'white' ) , ] , ) # close map #Style().map('TMenubutton',# This one is just for 'look and feel' #fieldbackground = [ #('focus','!disabled',self.FocusColor), #('!focus','active','!disabled',self.NoFocusMouseOverColor), #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor), ##('disabled','lightgray'), #], #foreground = [ #('disabled','gray'), #('!disabled', 'black') #], #background = [ #('focus','!disabled',self.FocusColor), #('!focus','active','!disabled',self.NoFocusMouseOverColor), #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor), ##('disabled','lightgray'), #], #selectbackground = [ #('focus','!disabled',self.FocusColor), #('!focus','active','!disabled',self.NoFocusMouseOverColor), #('!focus','!active','!disabled',self.NoFocusNoMouseOverColor), ##('disabled','lightgray'), #], #selectforeground = [ #('!focus','black'), #('focus','white'), #], #) # close map Style ( ) . map ( "Horizontal.TScale" , troughcolor = [ ( 'focus' , '!disabled' , self . FocusColor ) , ( '!focus' , 'active' , '!disabled' , self . NoFocusMouseOverColor ) , ( '!focus' , '!active' , '!disabled' , self . NoFocusNoMouseOverColor ) , ( 'disabled' , 'lightgray' ) , ] , ) # close map Style ( ) . map ( "Vertical.TScale" , troughcolor = [ ( 'focus' , '!disabled' , self . FocusColor ) , ( '!focus' , 'active' , '!disabled' , self . NoFocusMouseOverColor ) , ( '!focus' , '!active' , '!disabled' , self . NoFocusNoMouseOverColor ) , ( 'disabled' , 'lightgray' ) , ] , ) # close map Style ( ) . map ( "TMenu" , background = [ ( 'focus' , '!disabled' , self . FocusColor ) , ( '!focus' , 'active' , '!disabled' , self . NoFocusMouseOverColor ) , ( '!focus' , '!active' , '!disabled' , self . NoFocusNoMouseOverColor ) , ( 'disabled' , 'lightgray' ) , ] , )