Skip to content

Commit dfcac66

Browse files
committed
delete unused testing code
1 parent caf8785 commit dfcac66

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/ipyautoui/custom/editgrid.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -198,27 +198,6 @@ def _bn_copy(self, onclick):
198198
if __name__ == "__main__":
199199
display(UiCopy())
200200

201-
202-
203-
204-
# +
205-
import json
206-
import ipywidgets as widgets
207-
from IPython.display import Javascript
208-
209-
def copy_text_button(text: str) -> widgets.Widget:
210-
button = widgets.Button(description="Copy", icon="copy")
211-
output = widgets.Output(layout=widgets.Layout(display="none"))
212-
copy_js = Javascript(f"navigator.clipboard.writeText({json.dumps(text)})")
213-
214-
def on_click(_: widgets.Button) -> None:
215-
output.clear_output()
216-
output.append_display_data(copy_js)
217-
button.on_click(on_click)
218-
219-
return widgets.Box((button, output))
220-
221-
222201
# +
223202
# TODO: refactor how the datahandler works...
224203
# TODO: add a test for the datahandler...

0 commit comments

Comments
 (0)