Skip to content

Commit

Permalink
Rename tab to Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Aug 8, 2023
1 parent c332ad2 commit 9abda19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion btrack/napari/widgets/_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create_input_widgets() -> dict[str, tuple[str, QtWidgets.QWidget]]:
return widgets


def create_update_method_widgets() -> dict[str, tuple[str, QtWidgets.QWidget]]:
def create_basic_widgets() -> dict[str, tuple[str, QtWidgets.QWidget]]:
"""Create widgets for selecting the update method"""

update_method = QtWidgets.QComboBox()
Expand Down
10 changes: 5 additions & 5 deletions btrack/napari/widgets/create_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from napari.viewer import Viewer

from btrack.napari.widgets._general import (
create_basic_widgets,
create_config_widgets,
create_input_widgets,
create_logo_widgets,
create_track_widgets,
create_update_method_widgets,
)
from btrack.napari.widgets._motion import create_motion_model_widgets
from btrack.napari.widgets._optimiser import create_optimiser_widgets
Expand Down Expand Up @@ -48,7 +48,7 @@ def __init__(self, napari_viewer: Viewer) -> None:
self._add_input_widgets()
# This must be added after the input widgets
self._main_layout.addWidget(self._tabs, stretch=0)
self._add_update_method_widgets()
self._add_basic_widgets()
self._add_motion_model_widgets()
self._add_optimiser_widgets()
self._add_config_widgets()
Expand Down Expand Up @@ -87,9 +87,9 @@ def _add_input_widgets(self) -> None:
widget_holder.setLayout(layout)
self._main_layout.addWidget(widget_holder, stretch=0)

def _add_update_method_widgets(self) -> None:
def _add_basic_widgets(self) -> None:
"""Create update method widgets and add to main layout"""
labels_and_widgets = create_update_method_widgets()
labels_and_widgets = create_basic_widgets()
self._widgets.update(
{key: value[1] for key, value in labels_and_widgets.items()}
)
Expand All @@ -102,7 +102,7 @@ def _add_update_method_widgets(self) -> None:

tab = QtWidgets.QWidget()
tab.setLayout(layout)
self._tabs.addTab(tab, "Method")
self._tabs.addTab(tab, "Basic")

def _add_motion_model_widgets(self) -> None:
"""Create motion model widgets and add to main layout"""
Expand Down

0 comments on commit 9abda19

Please sign in to comment.