Re: Python extensions for Sodipodi
John Stracke <[email protected]> 06 Jun 2004 14:11:38 -0400
| Newsgroups | gmane.comp.graphics.sodipodi |
|---|---|
| Organization | Chordate |
| Message-ID | <[email protected]> |
On Sun, 2004-06-06 at 00:42, Pat Suwalski wrote: > John Stracke wrote: > > So. What do you guys think? Shall we work on this? > > I'm no Python expert, but I do have some questions. What is your goal > with this? Bindings for a tool that could automatically > duplicate-recolor-shift thereby creating a drop shadow? That sort of thing? Yeah, that sort of thing. My first goal was word wrap; I've got a project (http://www.georgelies.org) where I'm producing posters in SVG; it's a common template, with different text, and doing all the word wrap by hand was getting tedious. > > CorelDRAW has always had the scripting interface where one did not > actually need to know the commands of the script engine. That was > interesting. How did that work? Did you issue commands by just using the GUI as normal? > I was always more impressed with the Corel ability to "Record". For > [...] Is something like that > feasible for this? Mmm, only if the core GUI were instrumented to emit signals whenever the user did anything. > I'm also curious how you bind into the source. Is it function by function? Yes and no. I do have specify each function or method individually, but I mostly don't have to write the wrappers by hand; there's a spec file (src/spodi.defs in the tarball I sent out) that describes the classes (and top-level functions), and another file (src/spodi.overrides) that provides functionality that doesn't fit into the spec. It wasn't too hard, though I suppose it would've been nicer to have some sort of autogeneration. /=================================================================\ |John Stracke | http://www.thibault.org |HTML OK | |Francois Thibault |============================================| |East Kingdom |A successful tool is one that was used to do| |[email protected]|something undreamed of by its author. | \=================================================================/ My medieval art for sale: http://www.thibault.org/store/ ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504