I have a Value Error that is caught, in the exception block when I have no problem printing to the terminal, however, i cannot insert any text into the text widget. Heres the code snippet, any ideas?
try:
if len( errorCode ) == 0 and len( errorCodeHex ) >= 1:
errorCode = str( int( errorCodeHex, 16 ) )
#Enable Input to be entered into the Text Box
self.errorInformation["state"] = NORMAL
if len( errorCode ) == 0 and len( errorCodeHex ) == 0:
self.errorInformation.insert( END, 'Please enter either a hex or a decimal error code \n\n' )
elif errorInfo.has_key( errorCode ):
self.errorInformation.insert( END, 'Decimal Value: \t\t\t' + 'Hex Value: \t\t' + 'Error Message: \n\n' )
self.errorInformation.insert( END, errorCode + '\t\t\t' + '0x' + errorInfo[errorCode][0] + '\t\t' + errorInfo[errorCode][1] + '\n\n' )
else:
if len( errorCodeHex ) < 1:
self.errorInformation.insert( END, 'There is no Error Code with the value: ' + errorCode + '\n\n' )
else:
self.errorInformation.insert( END, 'There is no Error Code with the value: ' + errorCodeHex + '\n\n' )
except ValueError:
self.errorInformation.insert( END, 'Please Enter a Valid Hexidecimal Number \n\n' )