aboutsummaryrefslogtreecommitdiffstats
path: root/AboutWindow.py
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2026-07-24 18:00:52 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2026-07-24 18:00:52 +0530
commitbc7d62ca9a406bc30419e985016c7f4f56e54e76 (patch)
treeb4f1091e7f008df31d20039f0fa4c683d05785e5 /AboutWindow.py
first commit
Diffstat (limited to 'AboutWindow.py')
-rw-r--r--AboutWindow.py68
1 files changed, 68 insertions, 0 deletions
diff --git a/AboutWindow.py b/AboutWindow.py
new file mode 100644
index 0000000..83a8eaa
--- /dev/null
+++ b/AboutWindow.py
@@ -0,0 +1,68 @@
+# Soundboard Engine - customizable soundboard
+# Copyright (C) 2026 Vidhu Kant Sharma <vidhukant@vidhukant.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+from PySide6.QtWidgets import (
+ QVBoxLayout,
+ QWidget,
+ QLabel,
+ QPushButton
+)
+
+from PySide6.QtCore import QUrl
+from PySide6.QtGui import QDesktopServices
+from Soundboard import Soundboard
+
+
+class AboutWindow(QWidget):
+ def __init__(self, soundboard: Soundboard, app_version):
+ super().__init__()
+
+ self.app_version = app_version
+ self.soundboard = soundboard
+
+ self.setWindowTitle(f"About - Soundboard Engine {self.app_version}")
+ self.setMinimumSize(450, 300)
+ self.resize(450, 300)
+
+ layout = QVBoxLayout()
+ layout.setSpacing(10)
+
+ soundboard_info = QLabel(
+ f"Soundboard Name: {self.soundboard.soundboard_name}\n" +
+ f"Soundboard Author: {self.soundboard.soundboard_author}\n" +
+ f"Soundboard ID: {self.soundboard.soundboard_id}\n" +
+ f"Soundboard Version: {self.soundboard.soundboard_version}"
+ )
+ layout.addWidget(soundboard_info)
+
+ app_info = QLabel(
+ "Soundboard Engine - Customizable soundboard.\n" +
+ f"Version - {self.app_version}\n" +
+ "Copyright (c) 2026 Vidhu Kant Sharma <vidhukant@vidhukant.com>\n" +
+ "This program comes with absolutely no warranty.\n" +
+ "See GNU GPL Version 3 or later for more details."
+ )
+ layout.addWidget(app_info)
+
+ view_source_btn = QPushButton("View Source Code")
+ view_source_btn.clicked.connect(lambda: QDesktopServices.openUrl(QUrl("https://git.vidhukant.com/soundboard-engine/about")))
+ layout.addWidget(view_source_btn)
+
+ view_license_btn = QPushButton("View License")
+ view_license_btn.clicked.connect(lambda: QDesktopServices.openUrl(QUrl("https://git.vidhukant.com/soundboard-engine/tree/LICENSE")))
+ layout.addWidget(view_license_btn)
+
+ self.setLayout(layout)