about.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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 searxqt.version import __version__
  23. __description__ = str(
  24. "<center><h1>searx-qt</h1>"
  25. "<h3>A lightweight desktop application for searx</h3></center>"
  26. "<p>Source: https://notabug.org/CYBERDEViL/searx-qt</p>"
  27. "<p>License: GPLv3</p>"
  28. "<p>Version: {0}</p>".format(__version__)
  29. )
  30. def show(parent=None):
  31. QMessageBox.about(parent, "About searx-qt", __description__)