Skip to content

Commit

Permalink
property should return the _order and not itself (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrj authored Aug 28, 2023
1 parent 5bd1d2e commit 5ec385e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions viser/_gui_handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class GuiTabGroupHandle:
@property
def order(self) -> float:
"""Read-only order value, which dictates the position of the GUI element."""
return self.order
return self._order

def add_tab(self, label: str, icon: Optional[Icon] = None) -> GuiTabHandle:
"""Add a tab. Returns a handle we can use to add GUI elements to it."""
Expand Down Expand Up @@ -384,7 +384,7 @@ class GuiFolderHandle:
@property
def order(self) -> float:
"""Read-only order value, which dictates the position of the GUI element."""
return self.order
return self._order

def __enter__(self) -> GuiFolderHandle:
self._container_id_restore = self._gui_api._get_container_id()
Expand Down Expand Up @@ -506,7 +506,7 @@ class GuiMarkdownHandle:
@property
def order(self) -> float:
"""Read-only order value, which dictates the position of the GUI element."""
return self.order
return self._order

@property
def visible(self) -> bool:
Expand Down

0 comments on commit 5ec385e

Please sign in to comment.