Changed donate function to use webbrowser module

This commit is contained in:
Jeremiah Ticket 2019-12-08 04:08:20 -09:00
parent fa02172655
commit 9ec9d1240d

View File

@ -13,6 +13,7 @@ import pyperclip
import random import random
import re import re
import requests import requests
import webbrowser
# Global variable for speech provider # Global variable for speech provider
try: try:
import speechd import speechd
@ -235,4 +236,4 @@ def game_menu(*options):
def donate(): def donate():
pygame.mixer.music.pause() pygame.mixer.music.pause()
subprocess.call(["xdg-open", "https://liberapay.com/stormdragon2976/donate"]) webbrowser.open('https://liberapay.com/stormdragon2976/donate')