Skip to content

Commit

Permalink
using row in toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgLegato committed Apr 1, 2023
1 parent 9b3172b commit 9f61f1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Binary file modified scripts/__pycache__/vectorstudio.cpython-310.pyc
Binary file not shown.
12 changes: 6 additions & 6 deletions scripts/vectorstudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ def after_component(component, **kwargs):

if (suffix):
with gr.Accordion("Vector Studio", open=False, elem_id="VectorStudio_ToolBox", visible=False):
with gr.Column():
edit_svg_button = gr.Button ("Edit SVG", elem_id="sendto_svgedit_button_"+suffix)
cycle_svg_bg_button = gr.Button("Cycle BG", elem_id="svg_cycle_bg", visible=True)

cycle_svg_bg_button.click(None,[],None,_js="vectorstudio_cycle_svg_bg")
edit_svg_button.click (None, [],None, _js="vectorstudio_send_gallery()" )
with gr.Row():
edit_svg_button = gr.Button ("Edit SVG", elem_id="sendto_svgedit_button_"+suffix)
cycle_svg_bg_button = gr.Button("Cycle BG", elem_id="svg_cycle_bg", visible=True)
cycle_svg_bg_button.click(None,[],None,_js="vectorstudio_cycle_svg_bg")
edit_svg_button.click (None, [],None, _js="vectorstudio_send_gallery()" )

# get the dropdown component to depend on selected/active script.
if kwargs.get("elem_id") == "script_list":
Expand Down
2 changes: 1 addition & 1 deletion svgedit
Submodule svgedit updated from 8619a1 to 4014b7

0 comments on commit 9f61f1f

Please sign in to comment.