Wow. Thanks for all the input. That should be helpful.
That would work - how fast are things changing? If performance isn't a
big concern, then there are more options.
Not fast at all, really. It shouldn't be processor-intensive. Usually it'll
only be one picture changing, instead of cycling through a series. However,
short animations should still be an option.
check out PyGame, which I think is a python layer on SDL -- my
understanding is that it's a good way to deal with raster graphics.
I like PyGame quite a bit—so that is one thing I'm considering. The main
thing that concerns me there is that I might not be able to resize the
window during run-time—or can it meld with WxPython such that this won't be
a concern? The Ren'Py visual novel engine uses PyGame, anyway, and it does a
lot of what I want.
Do you need any of this to be scalable?
The text needs to be. The background and character art, and such, would be
nice, but not required so much.
I wonder if there's a way to integrate swfc with Python, using Python
instead of ActionScript at chosen times. That would be great, I think. I
could just do that and stick it in a window, using Python to save the files
and such. Of course, I would want stuff in the swf to be able to interact
with stuff outside of it. Is that possible?
what would that buy you? This is a library issue, really. If there is a
C++ lib you could use, maybe python bindings are an option. If not, C++
is just going to make it more work!
Yeah, it would be a whole lot more work. I just figured there would be a
wider variety of graphic-related libraries available in C++. I know there
are tons of Python bindings for things, but not all of them are documented
as well as their C++ equivalents. Plus, executables wouldn't be as hard to
make (I sort of know how to make them from Python code, but the more
libraries you introduce, the harder and less reliable it gets.)
Adobe Air (or maybe Titanium) is an option for making desktop apps with
Flash -- though you're still stuck with a proprietary tool. Something
Flash-like, but scriptable in Python would be nice.
Ah, I didn't know that's what Adobe Air and Titanium were all about.
Something like those might work well for me in future, but I don't know if
they're at the point where they will just yet. Titanium looks especially
interesting. Thanks for noting these.
For the text layout, which TeX does much better than most, you can call
TeX, and make a PNG out of it -- that's what Matplotlib and the like do.
…
Hmm. I have an idea. I was thinking about using TeX and converting it to a
transparent SVG to layer over the other images—however, TeX is a major
dependency, it seems. Therefore, I think it might be a lot easier to try
converting HTML, with styles (without a background color) into a transparent
SVG instead. There has to be some way to convert in this manner through
Python: Do you know of one that might allow for a transparent background?
There is a _very_ primitive text layout engine in wx.lib.floatcanvas,
that can make small boxes of text. …
Sounds interesting. I'll have to check it out. It might be enough.
This link looks interesting for some of my purposes (as it allows CSS and
JavaScript), although it's not WxPython-related:
http://www.aclevername.com/articles/python-webgui/
I just had another idea. I could layer all the images together in a single
image and then just set that as the HTML background image, and the text
could go over it by this means, although I might have to try something such
as the above method to get all the text options I want.
I still need to figure out how to use Python to layer multiple images into
one. I suppose PIL could probably handle that, but would it be the
best/easiest thing to use? I would need to be able to specify position for
the smaller images onto the larger ones, and which images go on which
layers. Then, I would need it to output the resulting image.
Anyway, I'm mostly looking to flesh out ideas right now. I'm not ready for
all the actual display coding. I would like to stick with WxPython for the
GUI, if possible, though, for various reasons (it seems to be the best
documented GUI library in Python, for one—I haven't checked out that
HTML-GUI thing much yet, though).
···
--
View this message in context: http://www.nabble.com/split-a-frame-in-two-panels-doing-things-tp17974936p23517070.html
Sent from the wxPython-users mailing list archive at Nabble.com.