Skip to content

Commit

Permalink
Added donation button
Browse files Browse the repository at this point in the history
Every little helps
  • Loading branch information
euloggeradmin committed Nov 25, 2021
1 parent d978cfe commit 9e45249
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions LootNanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from datetime import datetime
from copy import copy
import json
import webbrowser

from utils.tables import *
from modules.combat import CombatModule
Expand Down Expand Up @@ -75,12 +76,23 @@ def __init__(self):
self.theme_btn = QPushButton("Toggle Theme")
self.theme_btn.clicked.connect(lambda: self.toggle_stylesheet())
self.theme_btn.setStyleSheet("background-color: white; color: black;")

self.donate_btn = QPushButton("Donate :)")
self.donate_btn.setStyleSheet("background-color: blue;")
self.donate_btn.released.connect(self.open_donation_window)
statusBar.addWidget(self.donate_btn)

statusBar.addWidget(self.theme_btn)


layout.addWidget(statusBar)

self.initialize_from_config()

def open_donation_window(self):
url = "https://www.paypal.com/donate?hosted_button_id=QN5CN9A52Q59E"
webbrowser.open(url, new=0)

def initialize_from_config(self):
if not self.config:
return
Expand Down

0 comments on commit 9e45249

Please sign in to comment.