Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Tab and Tabs updatable #5714

Merged
merged 2 commits into from Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/full-hornets-obey.md
@@ -0,0 +1,5 @@
---
"gradio": patch
---

fix:Make Tab and Tabs updatable
4 changes: 2 additions & 2 deletions gradio/layouts.py
Expand Up @@ -143,7 +143,7 @@ def update(
}


class Tabs(BlockContext, Changeable, Selectable):
class Tabs(Updateable, BlockContext, Changeable, Selectable):
"""
Tabs is a layout element within Blocks that can contain multiple "Tab" Components.
"""
Expand Down Expand Up @@ -182,7 +182,7 @@ def update(


@document()
class Tab(BlockContext, Selectable):
class Tab(Updateable, BlockContext, Selectable):
"""
Tab (or its alias TabItem) is a layout element. Components defined within the Tab will be visible when this tab is selected tab.
Example:
Expand Down