1234567891011121314151617 |
- from PyQt5.QtWidgets import QDialog
- from PyQt5.QtCore import Qt
- from ui.about import Ui_About
- class AboutDialog(QDialog):
- def __init__(self, parent=None):
- super(AboutDialog, self).__init__(
- parent, Qt.WindowSystemMenuHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
- )
- self.ui = Ui_About()
- self.ui.setupUi(self)
- @staticmethod
- def show_(parent=None):
- about = AboutDialog(parent)
- about.exec_()
|