I am trying to write a code and stucked here:
I have an .ini file which "clear" is written in it... What i wanted to do is read this "clear" from settings.ini and use it in if-else but i think "clear" is character and i cant use it as integers... if i write numbers instead of chars in the .ini file there is no problem but if i write chars then my code not working... How can i read chars and use it in if else situations?
Here my example code that i want to do:
filea = "c:\\data\\settings.ini"
f = codecs.open(filea, 'r', 'utf8')
set = f.read()
tp = read_file1()
set = int(tp)
if set == clear: #my problem is here !!!!
appuifw.note(u"RIGHT VALUE !", 'info')
appuifw.note(u"WRONG VALUE !", 'info')