
As far as the command prompt window, I'm not sure. I asked, and it seems that no one knows why this happens on Windows, or if it was in previous builds of Inkscape. The thread kinda died.
Ok... stop me if I'm wrong here, but I'm assuming effects work by calling python.exe with the name of script as an argument, and the parameters as plain text, right? If so, the command window appears because python is probably compiled as a CUI (command line user interface) app rather than a GUI app. When executables are compiled in windows, the linker specifies whether the app is CUI or GUI in the exe file header.
If you specify GUI, you get no command window, but also if you start the app from the command line none of your printfs will ever appear (which is presumably not what most python users do want). When the app is compiled as CUI you *always* get a command window, unles you already have the one you started the app in.
I don't really know, but I think it might be possible to force the command window not to show with some parameters in the win32 CreateProcess system call. I have felt though, for several reasons for quite some time that if at all possible, it would be much better to load python as a library, rather than as a process. First, because in windows processes take a long time to start, so the interactivity of extensions will always be very bad. Second, because of this window problem. Third, because it seems much more elegant to introduce the parameter values programmatically rather than as arguments on a command line. It would be quite a change, but I think the python-as-a-library approach would represent a substantial improvement.
Hope that helps Joel
----- Original Message ----- From: "Ted Gould" <ted@...11...> To: "Bill Baxter" <wbaxter@...400...> Cc: "Inkscape List Devel" inkscape-devel@lists.sourceforge.net Sent: Tuesday, September 25, 2007 7:15 AM Subject: SPAM-LOW: Re: [Inkscape-devel] Decision on live update of extensions
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--------------------------------------------------------------------------------
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel