I need some help with programming python. I need to have what it would normally state in the terminal (Linux Mint 12) to be stated in something for example the search bar. Thanks for your help.

Which state you are talking about?

Not really state...It's print....Sorry

I want to have the program print the results in the search bar.