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
eb2f2d6f
authored
Mar 12, 2021
by
Chris Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main function
parent
de9ddacf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
WikiWikiHow.py
WikiWikiHow.py
View file @
eb2f2d6f
...
...
@@ -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__
()
...
...
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