Skip to content
Advertisement

Search the data on the text file and Printing in GUI with Tkinter

I am writing a python program to search the data on the text file in GUI

The search function normally gives the result (in CLI). I want to use it with Tkinter, but when I pull the input with the Tkinter Entry function, my search function does not work.

Whatever I write, it outputs the data in the entire text file. I think the problem is in the if msg.get() in line:

The search function is below.

JavaScript

Also this is my Tkinter Function

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement