From 1f0e38a62e9194449cdc17920ff364e2c5bf1477 Mon Sep 17 00:00:00 2001 From: BrightCove Date: Sat, 25 Jan 2025 01:25:31 -0800 Subject: [PATCH] Update Python/GUI/PySimpleGUI-First-Attempt --- Python/GUI/PySimpleGUI-First-Attempt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/GUI/PySimpleGUI-First-Attempt b/Python/GUI/PySimpleGUI-First-Attempt index a6ab32e..d6bac40 100644 --- a/Python/GUI/PySimpleGUI-First-Attempt +++ b/Python/GUI/PySimpleGUI-First-Attempt @@ -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) \ No newline at end of file