From 6cf723b2b8ec824c25c6a46de50215797518ea14 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 19 Jan 2024 10:00:27 +0100 Subject: ✨ Added version dialog. See File -> Version. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/dialog.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tidal_dl_ng/dialog.py (limited to 'tidal_dl_ng/dialog.py') 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() -- cgit v1.3.1