If I find a solution in the meantime I will post it here, but all help is still very welcome.
![write in text box online write in text box online](https://support.content.office.net/en-us/media/e35daef4-61a8-4132-bb34-761016616dc3.png)
Of course you can scroll to the end, but I would prefer to see the last added lines and be able to scroll back to the beginning (like for example a text editor where you scroll down till the end of the document).Īn extra feature, as a next step, would be to also have the possibility to be able to override the text on the last line (for example a counter which is counting on the same line…Īn example of that I made here below (but the combination is still another issue…): import streamlit as stĪnd in the end I would like to be able to get the complete content of this text box and write it to a text file. In this example the text box will stay fixed, however you will only see the first lines of the logging. Logtxtbox.text_area("Logging: ", logtxt, height=500) This function is just like shape or image drawing, it takes three arguments the text to be displayed, and the x and y coordinate to display that text. Logtxtbox.text_area("Logging: ",logtxt, height = 500) Call the text() function to display text. # creating a placeholder for the fixed sized textbox The general idea is to create a fixed size “text box” on a webpage: import streamlit as st The advantage of the example ( code) is that you will always see the last lines of the text, the disadvantage is that the text box is growing, when more text is added (I would like to have a fixed size with scroll bars).
![write in text box online write in text box online](https://venturebeat.com/wp-content/uploads/2017/12/touchpc.jpg)
![write in text box online write in text box online](https://content-management-files.canva.com/306ffa37-7ec9-4666-9ac3-c6901af49230/text.jpg)
The example is indeed an interesting approach, however I would like to create it in a bit different way (unfortunately I am also still in a learning curve regarding Python and Streamlit). Hello, thank you very much for your fast reply.