Skip to content
Snippets Groups Projects
Commit b46f39d9 authored by Jacob Wahlman's avatar Jacob Wahlman :ok_hand:
Browse files

fixup

parent be809bdc
No related branches found
No related tags found
1 merge request!63Include GUI in the setup.py file and fixes for GUI functionality
Pipeline #16451 failed
...@@ -92,7 +92,7 @@ class DragButton(QPushButton): ...@@ -92,7 +92,7 @@ class DragButton(QPushButton):
self.pressed = not pressed self.pressed = not pressed
self.setStyleSheet(f"background-color: {'white' if not self.pressed else 'grey'}; border-style: solid;\ self.setStyleSheet(f"background-color: {'white' if not self.pressed else 'grey'}; border-style: solid;\
border-color: black; border-width: 2px") border-color: black; border-width: 2px")
path_to_image = os.path.join('operation_icons', f"{self.operation_path_name}{'_grey.png' if self.pressed else '.png'}") path_to_image = os.path.join(os.path.dirname(__file__), 'operation_icons', f"{self.operation_path_name}{'_grey.png' if self.pressed else '.png'}")
self.setIcon(QIcon(path_to_image)) self.setIcon(QIcon(path_to_image))
self.setIconSize(QSize(55, 55)) self.setIconSize(QSize(55, 55))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment