Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding option to write xml input #27

Open
shimwell opened this issue Feb 18, 2024 · 0 comments
Open

adding option to write xml input #27

shimwell opened this issue Feb 18, 2024 · 0 comments

Comments

@shimwell
Copy link
Member

We could have a text input that can be changed and used to generate the geometry.xml

    def save_text_area_to_file():
        text_area = st.session_state.text_area
        print(text_area)
        with open('geometry.xml', "w") as f:
            f.write(text_area)
        return st.success(f"Saved File to geometry.xml")

text_area = st.text_area(label='geometry xml input box',on_change=save_text_area_to_file, key='text_area')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant