Commit eb2f2d6f by Chris Johnson

main function

parent de9ddacf
Showing with 2 additions and 2 deletions
......@@ -4,7 +4,6 @@ import PySimpleGUI as sg
import SearchResults
import webbrowser
help_message = "Welcome to WikiWikiHow! \n\n Here you can Filter your WikiHow requests to better focus your search! \n\n \
To add required words to your search, put single or double quotations around them e.g 'purple' \n\n \
to add forbidden words to your search, put them behind a hyphen i.e - gun fight \n\n \
......@@ -48,6 +47,7 @@ def __main__(filters = {}):
elif event == 'Help':
sg.popup_scrolled(help_message, title='WikiWikiHow Manual :)')
elif not results_pg_active and event == 'Search':
print('LOADING...')
results_pg_active = True
filters = values
wh_query = values['Query']
......@@ -88,7 +88,7 @@ def display_results(filters, results_pg_active):
webbrowser.open(ev2, new = 2)
win2.close()
if __name__ == '__main__':
__main__()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment