summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/dialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'tidal_dl_ng/dialog.py')
-rw-r--r--tidal_dl_ng/dialog.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tidal_dl_ng/dialog.py b/tidal_dl_ng/dialog.py
new file mode 100644
index 0000000..5370136
--- /dev/null
+++ b/tidal_dl_ng/dialog.py
@@ -0,0 +1,19 @@
+from PySide6.QtWidgets import QDialog
+
+from tidal_dl_ng import __version__
+from tidal_dl_ng.ui.dialog_version import Ui_DialogVersion
+
+
+class DialogVersion(QDialog):
+ """Version dialog."""
+
+ def __init__(self, parent=None):
+ super().__init__(parent)
+ # Create an instance of the GUI
+ self.ui = Ui_DialogVersion()
+ # Run the .setupUi() method to show the GUI
+ self.ui.setupUi(self)
+ # Set the version.
+ self.ui.l_version.setText("v" + __version__)
+
+ self.exec()