Update Python/GUI/PySimpleGUI-First-Attempt

This commit is contained in:
2025-01-25 01:25:31 -08:00
parent 5f9fc798f5
commit 1f0e38a62e

View File

@ -41,7 +41,7 @@ while True:
with open("info.csv", 'r') as r:
FileReader = csv.reader(r)
for i in FileReader:
if i[1] == SearchKeyWord:
if SearchKeyWord in i[1]:
NewInfo = f"First Name:{i[0]}\nLast Name:{i[1]}\nPhone Number:{i[2]}\nPriority Level / Importance:{i[3]}\n"
#Reusing window[obj].update(value) to update the empty label -SearchOutput-
window['-SearchOutput-'].update(NewInfo)