( self, entry, minVal, maxVal )
return num
Change how the edit fields work. Allow a '/' in the edit field to
		denote a fraction.
		Split on '/' and evaluate each side. Note, if '<num> /' then
		num is evalulated since 'den' is empty
Change how the edit fields work. Allow a '/' in the edit field to
		denote a fraction.
		Split on '/' and evaluate each side. Note, if '<num> /' then
		num is evalulated since 'den' is empty
Change how the edit fields work . Allow a / in the edit field to denote a fraction . Split on / and evaluate each side . Note if <num > / then num is evalulated since den is empty
def ValidateEntry ( self, entry, minVal, maxVal ):
		'''
		Change how the edit fields work. Allow a '/' in the edit field to
		denote a fraction.
		Split on '/' and evaluate each side. Note, if '<num> /' then
		num is evalulated since 'den' is empty
		'''
		vals = entry.split('/',1)	# entry is text
		val = vals[0].strip()
		try:		num = float(val)
		except:	num = None
		else:
			if len(vals) > 1:
				val = vals[1].strip()
				if val:
					try:			den = float(val)
					except:		num = None
					else:
						if den > 0:	num = num / den
						else:			num = None
		if num is not None:
			num = num if num >= minVal and num <= maxVal else None
		self.FrameRate.config(style='RedMessage.TLabel' if num is None \
									  else 'DataLabel.TLabel')
		return num
def ValidateEntry ( self , entry , minVal , maxVal ) : vals = entry . split ( '/' , 1 ) # entry is text val = vals [ 0 ] . strip ( ) try : num = float ( val ) except : num = None else : if len ( vals ) > 1 : val = vals [ 1 ] . strip ( ) if val : try : den = float ( val ) except : num = None else : if den > 0 : num = num / den else : num = None if num is not None : num = num if num >= minVal and num <= maxVal else None self . FrameRate . config ( style = 'RedMessage.TLabel' if num is None else 'DataLabel.TLabel' ) return num