informationnotes.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python2
  2. # coding=utf-8
  3. # pylint: skip-file
  4. #
  5. # The Qubes OS Project, http://www.qubes-os.org
  6. #
  7. # Copyright (C) 2015 Marek Marczykowski-Górecki
  8. # <marmarek@invisiblethingslab.com>
  9. #
  10. # This program is free software; you can redistribute it and/or
  11. # modify it under the terms of the GNU General Public License
  12. # as published by the Free Software Foundation; either version 2
  13. # of the License, or (at your option) any later version.
  14. #
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU Lesser General Public License along
  21. # with this program; if not, see <http://www.gnu.org/licenses/>.
  22. #
  23. #
  24. from PyQt4.QtCore import SIGNAL
  25. from PyQt4.QtGui import QDialog, QIcon
  26. from .ui_informationnotes import *
  27. import subprocess
  28. class InformationNotesDialog(Ui_InformationNotesDialog, QDialog):
  29. def __init__(self):
  30. super(InformationNotesDialog, self).__init__()
  31. self.setupUi(self)
  32. details = subprocess.check_output(['/usr/libexec/qubes-manager/qvm_about.sh'])
  33. self.informationNotes.setText(details)