[Gimp-developer] library /. gimp

2009-05-29 Thread Esteban Barahona
sea shore thanks. ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

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

2009-05-29 Thread Akkana Peck
> On Fri, May 29, 2009 at 3:59 PM, Ryan Krauss wrote: > > pdb.gimp_xcf_save(1, img, drawable, xcf_path, xcf_path) > > pdb.gimp_file_save(img, drawable, xcf_path, xcf_path) That leads into something I've been needing from Python: I'd like a way of bringing up a Save-as or Export-as dialog from a P

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

2009-05-29 Thread Martin Nordholts
Akkana Peck wrote: > I'd like a way of bringing up a Save-as or Export-as dialog > from a Python script. There's no API for this currently, as far > as I can tell. The Save and Export dialogs are rather tightly coupled to the core currently so it will not be trivial to extend the plug-in API to s

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

2009-05-29 Thread Akkana Peck
Martin Nordholts writes: > IMO we should not reuse gimp_file_save() for this but instead introduce > gimp_show_save_dialog() and gimp_show_export_dialog(). I am a bit > worried however that plug-ins will abuse this power. In your case, why > do you need to show these dialogs? Isn't it better if

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, \

[Gimp-developer] language

2009-05-29 Thread Esteban Barahona
does XNU uses C or C++? ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Gimp-developer] alien @ pleiades (not high)

2009-05-29 Thread Esteban Barahona
the CLI (text) should have a trash can (image); rm rf ./ is too risky safe hex; updating filters+ ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Re: [Gimp-developer] alien @ pleiades (not high)

2009-05-29 Thread Alexia Death
On Friday 29 May 2009 21:56:50 Esteban Barahona wrote: > the CLI (text) should have a trash can (image); > > rm rf ./ is too risky > > safe hex; updating filters+ Could somebody evict this guy from the mail list? ___ Gimp-developer mailing list Gimp-devel

Re: [Gimp-developer] alien @ pleiades (not high)

2009-05-29 Thread Esteban Barahona
what is evict? ./ sexy no jutsu .../5/29 Alexia Death > On Friday 29 May 2009 21:56:50 Esteban Barahona wrote: > > the CLI (text) should have a trash can (image); > > > > rm rf ./ is too risky > > > > safe hex; updating filters+ > Could somebody evict this guy from the mail list? > .-gen jutsu

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

2009-05-29 Thread Sven Neumann
On Fri, 2009-05-29 at 10:18 -0700, Akkana Peck wrote: > Martin Nordholts writes: > > IMO we should not reuse gimp_file_save() for this but instead introduce > > gimp_show_save_dialog() and gimp_show_export_dialog(). I am a bit > > worried however that plug-ins will abuse this power. In your case,

Re: [Gimp-developer] language

2009-05-29 Thread Esteban Barahona
utf-8 or ascii? '9/5/29 Esteban Barahona > does XNU uses C or C++? > ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

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 wrote: > On Fri, 2009-05-29 at 10:18 -0700, Akkana Peck wrote: > > Martin Nordholts writes: > > > IMO we should not reuse gimp_file_sa

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

2009-05-29 Thread Adam C Powell IV
Hi, I'm a relative newbie trying to have a GIMP plugin draw a line (among other things). I found gdk_draw_line which seems to be what I want. But I don't know what to do about drawable. I of course have the GimpDrawable, and I have a guint8 array which holds the data from the GimpDrawable: g

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

2009-05-29 Thread Sven Neumann
Hi, 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): >

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

2009-05-29 Thread Sven Neumann
Hi, On Fri, 2009-05-29 at 17:51 -0400, Adam C Powell IV wrote: > I'm a relative newbie trying to have a GIMP plugin draw a line (among > other things). > > I found gdk_draw_line which seems to be what I want. It is not what you want. GDK is a drawing toolkit used by GTK+ for drawing user interf

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

2009-05-29 Thread Akkana Peck
Sven Neumann writes: > On Fri, 2009-05-29 at 10:18 -0700, Akkana Peck wrote: > > I need to show the dialogs because the plug-in needs to save a > > file (that's the whole point of the plug-in) and it seems like > > bad UI to pop up the JPEG save dialog without ever showing the > > user where the fi

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

2009-05-29 Thread Adam C Powell IV
On Sat, 2009-05-30 at 00:00 +0200, Sven Neumann wrote: > Hi, > > On Fri, 2009-05-29 at 17:51 -0400, Adam C Powell IV wrote: > > > I'm a relative newbie trying to have a GIMP plugin draw a line (among > > other things). > > > > I found gdk_draw_line which seems to be what I want. > > It is not w

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

2009-05-29 Thread Ryan Krauss
No, I have no good reason :) I am not really familiar with any Python GUI toolkit other than wxPython. When I realized that wouldn't work, I googled for Tk because I thought that was the one that ships with Python. On Fri, May 29, 2009 at 4:57 PM, Sven Neumann wrote: > Hi, > > On Fri, 2009-05-

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 wrote: > On Sat, 2009-05-30 at 00:00 +0200, Sven Neumann wrote: > > Hi, > > > > On Fri, 2009-05-29 at 17:51 -0400, Adam C Powell