diff --git a/fmtr/tools/interface_tools.py b/fmtr/tools/interface_tools.py index f495392..065207e 100644 --- a/fmtr/tools/interface_tools.py +++ b/fmtr/tools/interface_tools.py @@ -53,6 +53,19 @@ def loop(self): sleep(3) st.success("Success!") + def to_tabs(self, *classes): + """ + + Add tabs from a list of interface classes + + """ + tab_names = [cls.NAME for cls in classes] + tabs = st.tabs(tab_names) + + for cls, tab in zip(classes, tabs): + with tab: + cls() + @classmethod def is_streamlit(cls): """ diff --git a/fmtr/tools/version b/fmtr/tools/version index 0383441..9cf0386 100644 --- a/fmtr/tools/version +++ b/fmtr/tools/version @@ -1 +1 @@ -0.9.5 \ No newline at end of file +0.9.6 \ No newline at end of file