Skip to content

Commit

Permalink
added the logo to the dock
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrequ committed May 8, 2024
1 parent f5beb25 commit 2c32f16
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion arcjetCV/gui/arcjetCV_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setWindowIcon(QtGui.QIcon("gui/logo/arcjetCV_logo_.png"))
MainWindow.resize(800, 500)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
Expand Down
5 changes: 5 additions & 0 deletions arcjetCV/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS RESULTING FROM USE OF THE SUBJECT SOFTWARE. FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT "AS IS."
Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY LAW. RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
"""

from PySide6.QtWidgets import QApplication
from PySide6.QtGui import QIcon
import sys
from arcjetCV.gui.main_window import MainWindow


def main():
app = QApplication(sys.argv)
window = MainWindow()
path='logo/arcjetCV_logo_.png'
app.setWindowIcon(QIcon(path))
window.show()
sys.exit(app.exec())

Expand Down
2 changes: 1 addition & 1 deletion arcjetCV/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self):

# Set the application icon
self.logo_path = os.path.join(
Path(__file__).parent.absolute(), "logo/arcjetCV_logo_white.png"
Path(__file__).parent.absolute(), "logo/arcjetCV_logo_white_.png"
)
self.setWindowIcon(QIcon(self.logo_path))

Expand Down
3 changes: 1 addition & 2 deletions env/arcjetCV_env_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ dependencies:
- python
- pip
- pyside6
- ocl-icd-system
- opencv
- matplotlib
- pandas
- pyarrow
- scikit-learn
- segmentation-models-pytorch
- pytorch
- torchvision
- torchvision

0 comments on commit 2c32f16

Please sign in to comment.