βοΈΒ Β To-do items
Submitted by Arnaud Miribel
Summary
Simple Python function to create to-do items in Streamlit!
Functions
to_do
Create a to_do item
Parameters:
Name | Type | Description | Default |
---|---|---|---|
st_commands |
_type_
|
List of (cmd, args) where cmd is a streamlit command and args are the arguments of the command |
required |
checkbox_id |
str
|
Use as a key to the checkbox |
required |
Returns:
Name | Type | Description |
---|---|---|
None |
Prints the to do list |
Source code in src/streamlit_extras/stodo/__init__.py
Import:
- You should add this to the top of your .py file
Examples
example
def example():
to_do(
[(st.write, "β Take my coffee")],
"coffee",
)
to_do(
[(st.write, "π₯ Have a nice breakfast")],
"pancakes",
)
to_do(
[(st.write, ":train: Go to work!")],
"work",
)