Skip to content

Commit

Permalink
set icon
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Aug 21, 2024
1 parent 00696bb commit 3659acb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def build_executable():
"-m",
"PyInstaller",
"main.py",
"--icon=icons/logo-v2.svg",
"--noconfirm",
"--noupx",
]
Expand All @@ -60,6 +61,7 @@ def build_executable():
"-m",
"PyInstaller",
"main.py",
r"--icon=icons\logo-v2.svg",
"--noconfirm",
"--noupx",
]
Expand Down
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ def __init__(self):
firstIter=True
)


icon_path = ":/icons/icons/logo-v2.svg" # Adjust the path to your icon file
self.setWindowIcon(QIcon(icon_path))
QApplication.setWindowIcon(QIcon(icon_path))
self.setWindowTitle("REAL Video Enhancer")
self.setPalette(QApplication.style().standardPalette())
self.setMinimumSize(1100, 700)
Expand Down Expand Up @@ -164,7 +166,7 @@ def __init__(self):
# Startup Animation
self.animationHandler = AnimationHandler()
self.animationHandler.fadeInAnimation(self)

def QConnect(self):
# connect buttons to switch menus
self.homeBtn.clicked.connect(self.switchToHomePage)
Expand Down

0 comments on commit 3659acb

Please sign in to comment.