DialogAbout.py 388 B

1234567891011
  1. from .ui_py.ui_DialogAbout import Ui_DialogAbout
  2. from PySide6.QtWidgets import QDialog
  3. from PySide6.QtCore import Qt
  4. import os
  5. class DialogAbout(QDialog, Ui_DialogAbout):
  6. def __init__(self, parent=None):
  7. super(DialogAbout, self).__init__(parent)
  8. self.setAttribute(Qt.WA_DeleteOnClose)
  9. self.setupUi(self)
  10. self.version.setText(os.environ.get("VERSION"))