fix: make physical section disappear on clear button
Browse filesFiles changed (2)
10 unmodified lines11121314151617179 unmodified lines1971981992002012022036 unmodified lines21021121221321421521621710 unmodified linesfrom circumstances import show_causesfrom circumstances_dropdowns import *from physical_select_animal import show_physical, find_bounding_boxfrom physical_checkbox import on_select_body_partfrom behavior_checkbox import show_behavior, on_select_behaviorfrom style import *from theme import theme, css179 unmodified linesphysical_boxes_wounded,checkbox_beak, text_beak, checkbox_body, text_body, checkbox_feathers, text_feathers, checkbox_head, text_head, checkbox_legs, text_legs])button_clear.click()button_df.click(save_individual_to_df,inputs=[df],outputs=[df])6 unmodified linessubmit_button.click(save_and_rest_df, inputs=[df], outputs=[df])if __name__ == "__main__":demo.launch(server_name="0.0.0.0", server_port=3333)10 unmodified lines11121314151617179 unmodified lines1971981992002012022032042052066 unmodified lines21321421521621721821910 unmodified linesfrom circumstances import show_causesfrom circumstances_dropdowns import *from physical_select_animal import show_physical, find_bounding_boxfrom physical_checkbox import on_select_body_part, hide_physicalfrom behavior_checkbox import show_behavior, on_select_behaviorfrom style import *from theme import theme, css179 unmodified linesphysical_boxes_wounded,checkbox_beak, text_beak, checkbox_body, text_body, checkbox_feathers, text_feathers, checkbox_head, text_head, checkbox_legs, text_legs])button_clear.click()button_clear.click(hide_physical,outputs=[checkbox_beak, text_beak, checkbox_body, text_body, checkbox_feathers, text_feathers, checkbox_head, text_head, checkbox_legs, text_legs])button_df.click(save_individual_to_df,inputs=[df],outputs=[df])6 unmodified linessubmit_button.click(save_and_rest_df, inputs=[df], outputs=[df])if __name__ == "__main__":demo.launch(server_name="0.0.0.0", server_port=3333)
71 unmodified lines7273747571 unmodified lines#---------------------------------------------------------def on_select_body_part(body_part_checkbox, body_part):add_data_to_individual("physical_changes_" + body_part, body_part_checkbox)71 unmodified lines727374757677787980818271 unmodified lines#---------------------------------------------------------def on_select_body_part(body_part_checkbox, body_part):add_data_to_individual("physical_changes_" + body_part, body_part_checkbox)#---------------------------------------------------------def hide_physical():checkbox_beak, text_beak, checkbox_body, text_body, checkbox_feathers, text_feathers, checkbox_head, text_head, checkbox_legs, text_legs = process_body_parts("wounded", "None")return checkbox_beak, text_beak, checkbox_body, text_body, checkbox_feathers, text_feathers, checkbox_head, text_head, checkbox_legs, text_legs
app/main_multianimal.py+5-3
app/physical_checkbox.py+8-1