about.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ########################################################################
  2. # Searx-Qt - Lightweight desktop application for Searx.
  3. # Copyright (C) 2020-2022 CYBERDEViL
  4. #
  5. # This file is part of Searx-Qt.
  6. #
  7. # Searx-Qt is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # Searx-Qt is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. #
  20. ########################################################################
  21. from PyQt5.QtWidgets import QMessageBox
  22. from PyQt5.QtCore import QT_VERSION_STR
  23. from sys import version as PYTHON_VERSION
  24. from searxqt.version import __version__, __git__
  25. from searxqt.translations import _
  26. __description__ = str(
  27. "<center><h1>Searx-Qt</h1>"
  28. "<h3>{0}</h3></center>"
  29. "<p>{1}: https://notabug.org/CYBERDEViL/searx-qt</p>"
  30. "<p>{2}: GPL3</p>"
  31. "<p>{3}: {4}{5}</p>"
  32. "<p>Python: {5}</p>"
  33. "<p>PyQt5 : {6}</p>".format(
  34. _("A lightweight desktop application for Searx"),
  35. _("Source"),
  36. _("License"),
  37. _("Version"),
  38. __version__,
  39. f"-{__git__}" if __git__ else "",
  40. PYTHON_VERSION,
  41. QT_VERSION_STR
  42. )
  43. )
  44. def show(parent=None):
  45. QMessageBox.about(parent, _("About") + " Searx-Qt", __description__)