Changed donate function to use webbrowser module
This commit is contained in:
parent
fa02172655
commit
9ec9d1240d
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user