Skip to content

Commit

Permalink
edit-panel: make title bold, change name of group boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
pboettch committed May 28, 2024
1 parent 855699a commit 79b1f2e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tscat_gui/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ class FixedAttributesGroupBox(AttributesGroupBox):
def __init__(self,
state: AppState,
parent: Optional[QtWidgets.QWidget] = None):
super().__init__("Global", state, parent)
super().__init__("", state, parent)

self.setStyleSheet("QGroupBox { font-weight: bold; }")

def setup(self, entities: List[Union[tscat._Catalogue, tscat._Event]]) -> None:
values: Dict[str, Any] = {}
Expand Down Expand Up @@ -306,10 +308,12 @@ def create_label(self, text: str) -> EditableLabel: # type: ignore
def __init__(self,
state: AppState,
parent: Optional[QtWidgets.QWidget] = None) -> None:
super().__init__("Custom", state, parent)
super().__init__("Custom fields", state, parent)

self.all_attribute_names: List[str] = []

self.setStyleSheet("QGroupBox { font-weight: bold; }")

def setup(self, entities: List[Union[tscat._Catalogue, tscat._Event]]) -> None:
if len(entities) > 1:
self.hide()
Expand Down Expand Up @@ -394,6 +398,8 @@ def __init__(self,
parent: Optional[QtWidgets.QWidget] = None):
super().__init__("Catalogue(s) information", state, parent)

self.setStyleSheet("QGroupBox { font-weight: bold; }")

def setup(self, entities: List[Union[tscat._Catalogue, tscat._Event]]) -> None:

catalogues = [entity for entity in entities if isinstance(entity, tscat._Catalogue)]
Expand Down

0 comments on commit 79b1f2e

Please sign in to comment.