releasenotes.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python3
  2. # coding=utf-8
  3. #
  4. # The Qubes OS Project, http://www.qubes-os.org
  5. #
  6. # Copyright (C) 2015 Marek Marczykowski-Górecki
  7. # <marmarek@invisiblethingslab.com>
  8. #
  9. # This program is free software; you can redistribute it and/or
  10. # modify it under the terms of the GNU General Public License
  11. # as published by the Free Software Foundation; either version 2
  12. # of the License, or (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU Lesser General Public License along
  20. # with this program; if not, see <http://www.gnu.org/licenses/>.
  21. #
  22. #
  23. from PyQt4.QtGui import QDialog # pylint: disable=import-error
  24. from . import ui_releasenotes # pylint: disable=no-name-in-module
  25. class ReleaseNotesDialog(ui_releasenotes.Ui_ReleaseNotesDialog, QDialog):
  26. # pylint: disable=too-few-public-methods
  27. def __init__(self):
  28. super(ReleaseNotesDialog, self).__init__()
  29. self.setupUi(self)
  30. with open('/usr/share/doc/qubes-release-notes/README.Qubes-Release'
  31. '-Notes', 'r') as release_notes:
  32. self.releaseNotes.setText(release_notes.read())