Ayyıldız2 | 2008 TR Yapısı • 1-99 Orta Emek Destan • Oto Avsız • 10 Temmuz 21:00 HEMEN TIKLA!
HTML:
def UpdateAccNames(self):
linecache.clearcache()
if int(linecache.getline("loginsettings/loginsettings1.cfg",3)) == 1:
self.acc1Info.SetText("ID: " + linecache.getline("loginsettings/loginsettings1.cfg",1).replace("\n",""))
self.del1button.Show()
else:
self.acc1Info.SetText("Account1 [ LEER ]")
self.del1button.Hide()
if int(linecache.getline("loginsettings/loginsettings2.cfg",3)) == 1:
self.acc2Info.SetText("ID: " + linecache.getline("loginsettings/loginsettings2.cfg",1).replace("\n",""))
self.del2button.Show()
else:
self.acc2Info.SetText("Account2 [ LEER ]")
self.del2button.Hide()
if int(linecache.getline("loginsettings/loginsettings3.cfg",3)) == 1:
self.acc3Info.SetText("ID: " + linecache.getline("loginsettings/loginsettings3.cfg",1).replace("\n",""))
self.del3button.Show()
else:
self.acc3Info.SetText("Account3 [ LEER ]")
self.del3button.Hide()
if int(linecache.getline("loginsettings/loginsettings4.cfg",3)) == 1:
self.acc4Info.SetText("ID: " + linecache.getline("loginsettings/loginsettings4.cfg",1).replace("\n",""))
self.del4button.Show()
else:
self.acc4Info.SetText("Account4 [ LEER ]")
self.del4button.Hide()
Syser
HTML:
introLogin.py(line:583) __LoadScript
introLogin.py(line:1575) UpdateAccNames
LoginWindow.__LoadScript.BindObject - exceptions.ValueError:invalid literal for int():