diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-01-19 10:00:27 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-01-19 10:00:27 +0100 |
| commit | 6cf723b2b8ec824c25c6a46de50215797518ea14 (patch) | |
| tree | 05a1541c555470a03d78c8e1910367c75aa8c69d /tidal_dl_ng/dialog.py | |
| parent | 038eaf85cbc24166935f1392dc2432f3886a59c8 (diff) | |
| download | tidal-dl-ng-6cf723b2b8ec824c25c6a46de50215797518ea14.tar.gz | |
✨ Added version dialog. See File -> Version.
Diffstat (limited to 'tidal_dl_ng/dialog.py')
| -rw-r--r-- | tidal_dl_ng/dialog.py | 19 |
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() |
