AboutDialog.py 469 B

1234567891011121314151617
  1. from PyQt5.QtWidgets import QDialog
  2. from PyQt5.QtCore import Qt
  3. from ui.about import Ui_About
  4. class AboutDialog(QDialog):
  5. def __init__(self, parent=None):
  6. super(AboutDialog, self).__init__(
  7. parent, Qt.WindowSystemMenuHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
  8. )
  9. self.ui = Ui_About()
  10. self.ui.setupUi(self)
  11. @staticmethod
  12. def show_(parent=None):
  13. about = AboutDialog(parent)
  14. about.exec_()