fix for packed images

This commit is contained in:
2026-06-28 13:31:50 -07:00
parent b5de8709de
commit 2708c78f8e
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -517,7 +517,7 @@ class InteractiveParticipantGridCanvas(FigureCanvas):
layout = QVBoxLayout(popup) layout = QVBoxLayout(popup)
layout.setContentsMargins(0, 0, 0, 0) # Strip extra outer layout spacing layout.setContentsMargins(0, 0, 0, 0) # Strip extra outer layout spacing
target_png_path = resource_path("../../images/brain.png") target_png_path = resource_path("images/brain.png")
expanded_canvas = StaticChannelCanvas( expanded_canvas = StaticChannelCanvas(
channel_name, channel_name,
@@ -572,7 +572,7 @@ class InteractiveParticipantGridCanvas(FigureCanvas):
header.setAlignment(Qt.AlignmentFlag.AlignCenter) header.setAlignment(Qt.AlignmentFlag.AlignCenter)
card_layout.addWidget(header) card_layout.addWidget(header)
target_png_path = resource_path("../../images/brain.png") target_png_path = resource_path("images/brain.png")
# 3. Instantiate the canvas with a custom size flag or constraint # 3. Instantiate the canvas with a custom size flag or constraint
# Adjust your StaticChannelCanvas __init__ to check if it should render in 'compact' mode # Adjust your StaticChannelCanvas __init__ to check if it should render in 'compact' mode
@@ -688,7 +688,7 @@ class InteractiveParticipantGridCanvas(FigureCanvas):
layout = QVBoxLayout(popup) layout = QVBoxLayout(popup)
layout.setContentsMargins(10, 10, 10, 10) layout.setContentsMargins(10, 10, 10, 10)
target_png_path = resource_path("../../images/brain.png") target_png_path = resource_path("images/brain.png")
# This one renders full size (900x520) for analytical reading # This one renders full size (900x520) for analytical reading
expanded_canvas = StaticChannelCanvas( expanded_canvas = StaticChannelCanvas(
+1 -1
View File
@@ -58,6 +58,6 @@ def resource_path(relative_path):
# PyInstaller bundle path # PyInstaller bundle path
base_path = sys._MEIPASS base_path = sys._MEIPASS
else: else:
base_path = os.path.dirname(os.path.abspath(__file__)) base_path = os.path.abspath(".")
return os.path.join(base_path, relative_path) return os.path.join(base_path, relative_path)
+1 -1
View File
@@ -27,7 +27,7 @@ class WelcomeDialog(QDialog):
logo_label = QLabel(self) logo_label = QLabel(self)
# NOTE: might not work on mac and need the icns file # NOTE: might not work on mac and need the icns file
logo_label.setPixmap(QIcon(resource_path("../../icons/main.ico")).pixmap(48, 48)) logo_label.setPixmap(QIcon(resource_path("icons/main.ico")).pixmap(48, 48))
if first: if first:
title_label = QLabel(f"<h2>Welcome to {APP_NAME.upper()}!</h2>", self) title_label = QLabel(f"<h2>Welcome to {APP_NAME.upper()}!</h2>", self)
elif direct: elif direct: