Bachir Soussi Chiadmi 7 anni fa
parent
commit
586f700924
3 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  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/scss/*.css
-assets/images
-_index.html
 classes/__pycache__
 classes/__pycache__

+ 2 - 1
app.py

@@ -13,7 +13,7 @@ import sys, os, shutil
 
 
 from PyQt5 import QtCore
 from PyQt5 import QtCore
 from PyQt5.QtCore import QCoreApplication, QUrl, pyqtSlot, QSettings
 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.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.QtNetwork import QNetworkProxyFactory, QNetworkRequest
 from PyQt5.QtWebKit import QWebSettings
 from PyQt5.QtWebKit import QWebSettings
@@ -40,6 +40,7 @@ class MainWindow(QMainWindow):
       self.restorePreferences()
       self.restorePreferences()
 
 
       self.setWindowTitle("Cascade")
       self.setWindowTitle("Cascade")
+      self.setWindowIcon(QIcon('assets/images/icon.png'))
 
 
       self.initMenuBar()
       self.initMenuBar()
 
 

BIN
assets/images/icon.png