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.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(
channel_name,
@@ -572,7 +572,7 @@ class InteractiveParticipantGridCanvas(FigureCanvas):
header.setAlignment(Qt.AlignmentFlag.AlignCenter)
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
# Adjust your StaticChannelCanvas __init__ to check if it should render in 'compact' mode
@@ -688,7 +688,7 @@ class InteractiveParticipantGridCanvas(FigureCanvas):
layout = QVBoxLayout(popup)
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
expanded_canvas = StaticChannelCanvas(