Skip to content

Commit

Permalink
add cred removal and friendlies
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Sep 5, 2018
1 parent d4df89b commit b0f8c3c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions meleeuploader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ def __init__(self):
"Event-": [(' ', "_ename", ' '), (' ', "_pID", ' '), (' ', "_bracket", ' ')]},
(' ', '_button', ' ')]

# Main Menu Layout
self.mainmenu = [{
'Settings': [{
'Remove Youtube Credentials': self.__reset_cred_event
}]
}]

# Set TBA check

# Add ControlCombo values
Expand All @@ -80,6 +87,7 @@ def __init__(self):
self._mtype += "Grand Finals"
self._mtype += "Money Match"
self._mtype += "Crew Battle"
self._mtype += "Friendlies"
chars = ['Fox', 'Falco', 'Marth', 'Sheik', 'Jigglypuff', 'Peach', 'Captain Falcon', 'Ice Climbers', 'Pikachu', 'Samus', 'Dr. Mario', 'Yoshi', 'Luigi', 'Ganondorf', 'Mario', 'Young Link', 'Donkey Kong', 'Link', 'Mr. Game & Watch', 'Mewtwo', 'Roy', 'Zelda', 'Ness', 'Pichu', 'Bowser', 'Kirby']
for char in chars:
self._p1char += (char, False)
Expand Down Expand Up @@ -211,6 +219,11 @@ def writePrint(self, text):
self._output._form.plainTextEdit.moveCursor(QtGui.QTextCursor.End)
print(text, file=sys.__stdout__, end='')

def __reset_cred_event(self):
os.remove(os.path.join(os.path.expanduser("~"), ".melee-oauth2-youtube.json"))
# os.remove(os.path.join(os.path.expanduser("~"), ".melee-oauth2-spreadsheet.json"))
sys.exit(0)


def internet(host="www.google.com", port=80, timeout=4):
try:
Expand Down

0 comments on commit b0f8c3c

Please sign in to comment.