Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Michelle Awh
/
project_kitty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
de9ddacf
authored
Mar 12, 2021
by
Chris Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main function
parent
8d94f134
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
WikiWikiHow.py
WikiWikiHow.py
View file @
de9ddacf
...
@@ -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__
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment