mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-07-01 12:26:26 +00:00
impr: TabAbout
version info
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from PySide6.QtCore import Qt, Slot
|
||||
from PySide6.QtCore import QFile, Qt, Slot
|
||||
from PySide6.QtGui import QPixmap
|
||||
from PySide6.QtWidgets import QMessageBox, QWidget
|
||||
|
||||
@ -21,3 +21,11 @@ class TabAbout(Ui_TabAbout, QWidget):
|
||||
@Slot()
|
||||
def on_aboutQtButton_clicked(self):
|
||||
QMessageBox.aboutQt(self)
|
||||
|
||||
@Slot()
|
||||
def on_versionInfoButton_clicked(self):
|
||||
versionFile = QFile(":/VERSION")
|
||||
versionFile.open(QFile.OpenModeFlag.ReadOnly)
|
||||
versionText = str(versionFile.readAll(), encoding="utf-8")
|
||||
versionFile.close()
|
||||
QMessageBox.information(self, None, versionText)
|
||||
|
Reference in New Issue
Block a user