fix for packed images
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user