about.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ########################################################################
  2. # Searx-qt - Lightweight desktop application for SearX.
  3. # Copyright (C) 2020 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__
  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}: GPLv3</p>"
  31. "<p>{3}: {4}</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. PYTHON_VERSION,
  40. QT_VERSION_STR
  41. )
  42. )
  43. def show(parent=None):
  44. QMessageBox.about(parent, _("About") + " searx-qt", __description__)