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

"Advanced" layout options need documenting #25

Open
n8willis opened this issue Mar 17, 2023 · 0 comments
Open

"Advanced" layout options need documenting #25

n8willis opened this issue Mar 17, 2023 · 0 comments

Comments

@n8willis
Copy link

There's not enough in the README to get started using the Python layout features.

For instance, combing/concatenating layouts.

In the CLI usage, you can definitely do

svg_stack.py --direction=h margin=0 a.svg b.svg c.svg d.svg > row1.svg
svg_stack.py --direction=h margin=0 e.svg f.svg g.svg h.svg > row2.svg

svg_stack.py --direction=v margin=0 row1.svg row2.svg > grid.svg

and get a little

a b c d
e f g h

matrix out.

Trying to replicate that from two ss.HBoxLayouts either doesn't work or else there's some syntax about combining them that isn't clear.

Just trying it straight, making a couple of HBoxLayouts and adding them to a VBoxLayout raises NotImplementedError: rescaling width not implemented (hint: set alignment on file SVGFile('grid.svg'))

...which itself is confusing in two respects: first, I don't ask for any rescaling, so it'd be good to know where that enters into it (and how to configure it), and second, how/where to set an alignment on the output file.

I think this is a fairly straightforward potential use-case, and showing how to do it would help a lot of new users move beyond the 1D example of the CLI.

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