1
0
mirror of https://github.com/Melon-Bread/RetroUFO synced 2024-11-28 10:18:20 -05:00

Added icon support

This commit is contained in:
Rain Clark 2019-05-17 01:38:52 -04:00
parent bd7df18495
commit 7c5dfc4c11

View File

@ -15,7 +15,7 @@ from shutil import rmtree
from urllib.request import urlretrieve from urllib.request import urlretrieve
from PySide2.QtCore import QThread, Signal from PySide2.QtCore import QThread, Signal
from PySide2.QtGui import QTextCursor from PySide2.QtGui import QTextCursor, QIcon
from PySide2.QtWidgets import (QApplication, QCheckBox, QComboBox, QDialog, from PySide2.QtWidgets import (QApplication, QCheckBox, QComboBox, QDialog,
QFileDialog, QLineEdit, QPushButton, QTextEdit, QFileDialog, QLineEdit, QPushButton, QTextEdit,
QVBoxLayout, QMessageBox) QVBoxLayout, QMessageBox)
@ -267,6 +267,7 @@ if __name__ == '__main__':
# Create and show the form # Create and show the form
form = Form() form = Form()
form.setFixedWidth(438) # So all text on the log UI stays on one line form.setFixedWidth(438) # So all text on the log UI stays on one line
form.setWindowIcon(QIcon('icon.png'))
form.show() form.show()
# Run the main Qt loop # Run the main Qt loop
sys.exit(app.exec_()) sys.exit(app.exec_())