Re: [Gimp-developer] debugging and print messages in PyGimp for windows

2009-09-02 Thread Ryan Krauss
error messages from Python to display in Windows XP? Thanks, Ryan 2009/9/1 Jernej Simončič jer...@ena.si On Tuesday, September 1, 2009, 18:16:48, Ryan Krauss wrote: So, I have PyGIMP correctly installed in windows (I think). I am trying to port my plug-ins from Linux. One big annoyance

Re: [Gimp-developer] PyGimp on Windows XP

2009-09-01 Thread Ryan Krauss
. And the confirmation that it is working is a Python-Fu menu item with an option to launch a console under Filters. On Mon, Aug 31, 2009 at 7:05 PM, Ryan Krauss ryanli...@gmail.com wrote: I am trying to get PyGimp installed and working on Windows XP. It seems like this should be easier than

[Gimp-developer] debugging and print messages in PyGimp for windows

2009-09-01 Thread Ryan Krauss
So, I have PyGIMP correctly installed in windows (I think). I am trying to port my plug-ins from Linux. One big annoyance is that print doesn't seem to work and error messages that probably go to standard out go no where. I really need those messages to debug. I tried launching gimp from the

[Gimp-developer] PyGimp on Windows XP

2009-08-31 Thread Ryan Krauss
I am trying to get PyGimp installed and working on Windows XP. It seems like this should be easier than it used to be. A quick google lead to several long install procedures. I have been using PyGimp in Ubuntu and am quite happy with it, but I know need to use it in windows. Preparation: My

[Gimp-developer] PyGimp: letting the use pick coordinates

2009-07-06 Thread Ryan Krauss
I am using the GIMP and a Wacom tablet as a digital blackboard for a course I am teaching this summer. With Python and PyGimp, it is going really well (other than my bad hand writing made worse by the tablet - it is weird writing on the tablet and having to look to the screen to see what you have

[Gimp-developer] Creating a layer from a selection or pasting to a specified x, y coorinate

2009-07-06 Thread Ryan Krauss
pdb.gimp_edit_paste_as_new, can I get the coordinates of the pasted selection and then move the floating selection before anchoring? What is the right approach? Thanks, Ryan On Mon, Jul 6, 2009 at 9:37 AM, Alexia Death alexiade...@gmail.com wrote: On Mon, Jul 6, 2009 at 5:25 PM, Ryan Krauss ryanli...@gmail.com

Re: [Gimp-developer] Creating a layer from a selection or pasting to a specified x, y coorinate

2009-07-06 Thread Ryan Krauss
OK, I think I have solved my problem. You have to know what to search for in the pdb. I think this will do what I need: pdb.gimp_layer_set_offsets There is nothing in the pdb browser for moving a layer, you have to offset it. On Mon, Jul 6, 2009 at 10:15 AM, Ryan Krauss ryanli...@gmail.com

Re: [Gimp-developer] API for bringing up a Save dialog

2009-05-30 Thread Ryan Krauss
pyGTK: http://www.pygtk.org/ On Sat, May 30, 2009 at 6:56 AM, Esteban Barahona bodig...@gmail.comwrote: speaking of python... are there any wrappers of python (or perl) in gtk? .../5/29 Ryan Krauss ryanli...@gmail.com No, I have no good reason :) I am not really familiar with any Python

Re: [Gimp-developer] API for bringing up a Save dialog

2009-05-29 Thread Ryan Krauss
This is mildly hackish, but my approach is to pop up a Tk save as dialog: filetypes = [('png files', '*.png'), ('jpg files', '*.jpg'),\ ('all files', '.*')] def save_as(initialdir=None, initialfile=None): filename = tkFileDialog.asksaveasfilename(initialdir=initialdir, \

Re: [Gimp-developer] API for bringing up a Save dialog

2009-05-29 Thread Ryan Krauss
But how would you progromatically suggest a good filename before popping up the dialog? That is what my code does. On Fri, May 29, 2009 at 3:37 PM, Sven Neumann s...@gimp.org wrote: On Fri, 2009-05-29 at 10:18 -0700, Akkana Peck wrote: Martin Nordholts writes: IMO we should not reuse

Re: [Gimp-developer] API for bringing up a Save dialog

2009-05-29 Thread Ryan Krauss
, On Fri, 2009-05-29 at 12:34 -0500, Ryan Krauss wrote: This is mildly hackish, but my approach is to pop up a Tk save as dialog: filetypes = [('png files', '*.png'), ('jpg files', '*.jpg'),\ ('all files', '.*')] def save_as(initialdir=None, initialfile=None): filename

Re: [Gimp-developer] Drawing a line in a GIMP plugin

2009-05-29 Thread Ryan Krauss
The procedure browser is your best bet (should be under the help menu). gimp-pencil and gimp-paintbrush look the ones. On Fri, May 29, 2009 at 6:41 PM, Adam C Powell IV hazel...@debian.orgwrote: On Sat, 2009-05-30 at 00:00 +0200, Sven Neumann wrote: Hi, On Fri, 2009-05-29 at 17:51 -0400,

[Gimp-developer] PyGIMP question: saving PNG and XCF versions of the same image

2009-05-28 Thread Ryan Krauss
I have a Python Gimp question. I don't know if it belongs on the user or developer list, but my feeling is that the people with the knowledge are more likely to read this list. Let me know if this is the wrong list to post to. I have written a script to create PNG and XCF versions of an image I