Hi,
Is it possible to set labels of a widget (e.g. radio buttons) to have texts of varying size? I want to have a multi-level radio selection, if possible at all.
Thanks
Hi,
Is it possible to set labels of a widget (e.g. radio buttons) to have texts of varying size? I want to have a multi-level radio selection, if possible at all.
Thanks
Welcome to the community, @aghasemi!
If I understand you correctly, that’s not possible right now (but a great feature request!) But let me check that I understand. What you want is for the labels on the radio buttons to have different text sizes - so as an example, in the below code, you would want ‘Comedy’ to be a larger text size than ‘Drama.’
genre = st.radio(
'Pick a movie genre',
('Comedy', 'Drama', 'Documentary')
)
If so, this would be an excellent candidate for a custom, user-defined widget, which is a feature being tracked here. Please feel free to follow that feature request and / or comment with your use-case.
Thank you for using Streamlit!
Yes exactly this. More precisely, I want to create a multi-level radio button, and even more precise than that, I will use it to have a slide show in my demo, combining presentation and demonstration.
Many thanks
Best
Great - I just added that to the feature request.
There might be a way to do what you want with another widget. Can you tell me more about exactly how you want the slideshow to work?
Just a typical table of content where each item yields to a page/slide (with bullets, …)
Sorry for the late reply.
Thanks for the additional info @aghasemi. Just added it to the associated GitHub issue!
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.