ソースを参照

created app icon

Bachir Soussi Chiadmi 7 年 前
コミット
586f700924
3 ファイル変更2 行追加3 行削除
  1. 0 2
      .gitignore
  2. 2 1
      app.py
  3. BIN
      assets/images/icon.png

+ 0 - 2
.gitignore

@@ -1,4 +1,2 @@
 assets/scss/*.css
-assets/images
-_index.html
 classes/__pycache__

+ 2 - 1
app.py

@@ -13,7 +13,7 @@ import sys, os, shutil
 
 from PyQt5 import QtCore
 from PyQt5.QtCore import QCoreApplication, QUrl, pyqtSlot, QSettings
-from PyQt5.QtGui import QKeySequence, QFont, QSyntaxHighlighter
+from PyQt5.QtGui import QIcon, QKeySequence, QFont, QSyntaxHighlighter
 from PyQt5.QtWidgets import QMainWindow, QAction, QWidget, QApplication, QShortcut, QGridLayout, QLabel, QTabWidget, QHBoxLayout, QVBoxLayout, QSplitter, QSplitterHandle, QPlainTextEdit, QInputDialog, QLineEdit, QFileDialog
 # from PyQt5.QtNetwork import QNetworkProxyFactory, QNetworkRequest
 from PyQt5.QtWebKit import QWebSettings
@@ -40,6 +40,7 @@ class MainWindow(QMainWindow):
       self.restorePreferences()
 
       self.setWindowTitle("Cascade")
+      self.setWindowIcon(QIcon('assets/images/icon.png'))
 
       self.initMenuBar()
 

BIN
assets/images/icon.png