Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help on the User Interface
#1
Hello!
I am new to Python. I have some doubts about the Streamlit UI.
As in the screenshot, the value is not visible. How can I change the color of the calculated output?

Attached Files

Thumbnail(s)
   
Reply
#2
You have to look Streamlit docs.
Guess few here know this library,and you not posted any code.
It's of course build with HTML/CSS in bottom as work in browsers,but calling it i guess the use mostly own wrappers to make the experience easier.
So they will have own method to change color.

You have green color on text and output an other color may work better.
If i take i quick look.
# Show the input back to the user with colored text
st.write(f'<span style="color:blue">Hello, {user_input}! Welcome to Streamlit</span>', unsafe_allow_html=True)
So can use standard HTML/CSS if use unsafe allow.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  user interface Button not working Frankduc 4 1,467 Feb-16-2022, 02:52 PM
Last Post: Frankduc
  in a login interface when i try login with a user supposed to say test123 but nothing NullAdmin 3 2,289 Feb-20-2021, 04:43 AM
Last Post: bowlofred
  Help with User Interface design code ai_masti 0 1,941 Nov-19-2020, 05:58 PM
Last Post: ai_masti
  os.system("netsh interface set interface 'Wi-Fi' enabled") aniyanetworks 12 10,219 Jan-18-2019, 04:07 AM
Last Post: aniyanetworks

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020