diff --git a/caliscope/gui/charuco_widget.py b/caliscope/gui/charuco_widget.py index 68db661a..8e708311 100644 --- a/caliscope/gui/charuco_widget.py +++ b/caliscope/gui/charuco_widget.py @@ -174,9 +174,13 @@ def build_charuco(self): # Clear any previous error message self.charuco_display.setStyleSheet("") self.charuco_display.setToolTip("") + self.controller.update_charuco(self.charuco) except Exception as e: logger.error(f"Failed to create charuco board: {str(e)}") - error_msg = "Unable to create board with current dimensions.\nThe aspect ratio may be too extreme." + error_msg = """Unable to create board with current dimensions.\n + The default dictionary may by too small (can be configured in config.toml file). + Alternatively, the aspect ratio may be too extreme. + """ self.charuco_display.setPixmap(QPixmap()) # Clear the pixmap self.charuco_display.setText(error_msg) # Optional: Add some styling to make the error message stand out @@ -186,7 +190,6 @@ def build_charuco(self): charuco_img = self.charuco.board_pixmap(charuco_width, charuco_height) self.charuco_display.setPixmap(charuco_img) - self.controller.update_charuco(self.charuco) class CharucoConfigGroup(QWidget):