As to your original question, you can use an imageview with an image of a line that you stretch out. Also, you could use a custom view with drawing, but that requires code, cannot really layout in ui editor.
@ccc, given the comment from @omz that sidebar presentation may be broken in post 1.5 beta(s),I plan to fix/improve issues based on current released product until the next release is generally available.
Thanks to everyone for the useful explanations. I can now render my SVG in a web view by loading html. I'm still not sure that web view best meets my need. Is there any other ui view that can load and properly render an SVG object?
@wradcliffe thanks for the link to PonyDebugger. Indeed, the basic concept is very similar to what we did in VA/Java. If by debugging and tracing support you mean from within Pythonista itself, that is, from within such a sandboxed app, I too agree that would be compelling. As long as there is absolultely no dependence on any external platform such as Xcode on Mac OSX or any external network including the internet, I would be interested. What I am hinting at has to be a totally self-contained, user-added extension to the main Pythonista app in the same way as other utilities and tools for Pythonista are getting developed and accumulated like the Pythonista tools. I want to contribute added value to myself in the name of creating other utilities and services/workflow within Pythonista. So I'm talking about a level one step above the community tools, a framework if you will for creating Pythonista tools :)
when you say that "The only way you can do this at the moment..." are you saying that this is a restriction? Like I say, the way I see it, it makes sense as the preferred way to load the view anyway.
It definitely makes sense to load the view this way, and that's why it's one of the two supported methods of assigning actions.
To be honest though, if I'd write the load_view function again today, I would probably add an explicit 'owner' parameter, as that would be more pythonic in my opinion.
When you think about how you might write a load_view function in pure Python, it becomes clear that it has to do quite a bit of "magic" you might not expect. Normally, when you call a function from a method, that function has no idea what self refers to, because it's just a local variable (parameter) in the scope of your method.
So the load_view function basically has to look at the stack to determine what self refers to in the context of your call. This is of course possible to do in Python, but it's a little ugly and goes against the "explicit is better than implicit" principle.