Update Python/GUI/PySimpleGUI-First-Attempt
This commit is contained in:
@ -41,7 +41,7 @@ while True:
|
|||||||
with open("info.csv", 'r') as r:
|
with open("info.csv", 'r') as r:
|
||||||
FileReader = csv.reader(r)
|
FileReader = csv.reader(r)
|
||||||
for i in FileReader:
|
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"
|
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-
|
#Reusing window[obj].update(value) to update the empty label -SearchOutput-
|
||||||
window['-SearchOutput-'].update(NewInfo)
|
window['-SearchOutput-'].update(NewInfo)
|
Reference in New Issue
Block a user