From 9e452493859ce2f2fe2a7c97da5445d841ffae37 Mon Sep 17 00:00:00 2001 From: LootNanny Date: Thu, 25 Nov 2021 11:52:18 +0100 Subject: [PATCH] Added donation button Every little helps --- LootNanny.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/LootNanny.py b/LootNanny.py index 70bf50e..015569c 100644 --- a/LootNanny.py +++ b/LootNanny.py @@ -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 @@ -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