From 7c5dfc4c11da3e62f8764ab901a30c1fd0e4bf32 Mon Sep 17 00:00:00 2001 From: Melon Bread Date: Fri, 17 May 2019 01:38:52 -0400 Subject: [PATCH] Added icon support --- RetroUFO_GUI.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RetroUFO_GUI.py b/RetroUFO_GUI.py index bc7a13e..fd26cc6 100755 --- a/RetroUFO_GUI.py +++ b/RetroUFO_GUI.py @@ -15,7 +15,7 @@ from shutil import rmtree from urllib.request import urlretrieve 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, QFileDialog, QLineEdit, QPushButton, QTextEdit, QVBoxLayout, QMessageBox) @@ -267,6 +267,7 @@ if __name__ == '__main__': # Create and show the form form = Form() form.setFixedWidth(438) # So all text on the log UI stays on one line + form.setWindowIcon(QIcon('icon.png')) form.show() # Run the main Qt loop sys.exit(app.exec_())