Skip to content

Conversation

@stannam
Copy link
Member

@stannam stannam commented Jul 28, 2025

This PR applies QTabWidget label bolding logic to nested tabs when their parents are selected.

decide_bold_label() is a method in BoldableTabWidget which checks the children of each tab and determines whether its label should be shown in bold. Currently, it is called when initializing the nonman GUI or when the user selects a tab index.

Tabs like 'Facial Expression' and 'Mouth' contain an embedded tab, which may need to be bolded. However, since decide_bold_label() does not look for a QTabWidget among the content, bolding cannot be aplied to a nested tab recursively.

This PR connects the index change signal to a new method on_tab_change(), instead of decide_bold_label(). The new method wraps decide_bold_label() and applies the bolding logic to the matrix and nested tabs.

As well, this PR adds __repr__() for the TabWidget class for convenience.

now it checks children and apply bolding if needed
@stannam stannam requested a review from kvesik July 28, 2025 23:04
Copy link
Collaborator

@kvesik kvesik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Stanley!

@stannam stannam merged commit f68db93 into main Aug 7, 2025
@stannam stannam deleted the 470-bold-highlighting-on-subsidiary-nonmanual-tabs-missing-when-module-is-opened branch August 7, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bold highlighting on subsidiary nonmanual tabs missing when module is opened

3 participants