You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i would like to have put_button() engage the edit function. with the put_button() function being engaged, only then i would like to be allowed to edit. i would like to select the text i would like to have edited. right now the onclick(edit) only allows me to make a correction only once. put_button("edit", edit) only allows me to correct 'scope1', put_button("edit", edit1), will allow me to make a change in 'scope2' but having two buttons is silly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i would like to have put_button() engage the edit function. with the put_button() function being engaged, only then i would like to be allowed to edit. i would like to select the text i would like to have edited. right now the onclick(edit) only allows me to make a correction only once. put_button("edit", edit) only allows me to correct 'scope1', put_button("edit", edit1), will allow me to make a change in 'scope2' but having two buttons is silly.
help please.
@use_scope('scope1', clear=True)
def edit():
put_text(input('edit: '))
@use_scope('scope2', clear=True)
def edit1():
put_text(input('edit: '))
def main():
put_table([
['date', 'stuff'],
[put_scope('scope1', put_text('11/11').onclick(edit)), put_scope('scope2', put_text('hi there').onclick(edit1))]
])
put_button("edit", edit)
Beta Was this translation helpful? Give feedback.
All reactions