Commit de9ddacf by Chris Johnson

main function

parent 8d94f134
Showing with 3 additions and 3 deletions
...@@ -20,7 +20,7 @@ help_message = "Welcome to WikiWikiHow! \n\n Here you can Filter your WikiHow re ...@@ -20,7 +20,7 @@ help_message = "Welcome to WikiWikiHow! \n\n Here you can Filter your WikiHow re
def interact(filters = {}): def __main__(filters = {}):
''' '''
Initializes GUI for interaction with the SearchResults class Initializes GUI for interaction with the SearchResults class
Calling interact() will open a window where search terms and other filters Calling interact() will open a window where search terms and other filters
...@@ -38,7 +38,6 @@ def interact(filters = {}): ...@@ -38,7 +38,6 @@ def interact(filters = {}):
[sg.Spin([i for i in range(100)], initial_value=0, key = "num_views"), sg.Text('Views')], [sg.Spin([i for i in range(100)], initial_value=0, key = "num_views"), sg.Text('Views')],
[sg.Combo(['English', 'Español', 'Português', 'Italiano', 'Français', 'русский язык', 'Deutsch', '简体中文', 'Nederlands', 'Čeština', 'Bahasa', '日本語', 'हिंदी', 'ภาษาไทย',' العَرَبِيةُ', 'Tiếng Việt', '한국말', 'Türkçe',' فارسی'], key = 'language'), sg.Text('Available in')]] [sg.Combo(['English', 'Español', 'Português', 'Italiano', 'Français', 'русский язык', 'Deutsch', '简体中文', 'Nederlands', 'Čeština', 'Bahasa', '日本語', 'हिंदी', 'ภาษาไทย',' العَرَبِيةُ', 'Tiếng Việt', '한국말', 'Türkçe',' فارسی'], key = 'language'), sg.Text('Available in')]]
#layout_x = layout
window = sg.Window('WikiHow Search and Filters', layout) window = sg.Window('WikiHow Search and Filters', layout)
results_pg_active = False results_pg_active = False
...@@ -90,6 +89,7 @@ def display_results(filters, results_pg_active): ...@@ -90,6 +89,7 @@ def display_results(filters, results_pg_active):
win2.close() 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