mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-15 03:15:17 +00:00
Add About window on macOS
This commit is contained in:
parent
c2a2ac4407
commit
64179c392a
@ -1358,12 +1358,14 @@ class MainWindow(QtGui.QMainWindow):
|
||||
window.mainLayout.setMenuBar(window.menuBar)
|
||||
|
||||
def openAbout(self):
|
||||
AboutMsgBox = QtGui.QMessageBox.about(self,"Syncplay","Syncplay v" + version)
|
||||
# AboutMsgBox = QtGui.QMessageBox()
|
||||
# AboutMsgBox.setText("Test text")
|
||||
# AboutMsgBox.setStandardButtons(0)
|
||||
# AboutMsgBox.setModal(True)
|
||||
# AboutMsgBox.exec_()
|
||||
#AboutMsgBox = QtWidgets.QMessageBox.about(self,"Syncplay","Syncplay v" + version)
|
||||
AboutMsgBox = QtWidgets.QMessageBox(self)
|
||||
AboutMsgBox.setText("<center>Syncplay<br><small><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
|
||||
AboutMsgBox.setInformativeText("<center>Version v" + version + "<p>Copyright © 2017 Syncplay</p><p>Licensed under the Apache License, Version 2.0</p></center>")
|
||||
AboutIcon = QtGui.QPixmap(self.resourcespath + u"syncplay.png")
|
||||
AboutMsgBox.setIconPixmap(AboutIcon.scaled(120, 120))
|
||||
AboutMsgBox.setModal(True)
|
||||
AboutMsgBox.exec_()
|
||||
|
||||
|
||||
def addMainFrame(self, window):
|
||||
|
Loading…
Reference in New Issue
Block a user