On Friday 29 May 2009, Martin Nordholts wrote:
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
k!!
The E-mail client is showing me unread messages from months ago as if they
where New :-(
Sorry for digging into this ancient thread. :-(
js
--
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
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 GUI
toolkit other than wxPython. When I realized that wouldn't work, I googled
for Tk because I thought
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
On Fri, May 29, 2009 at 3:59 PM, Ryan Krauss ryanli...@gmail.com 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
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
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, \
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, why
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
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):
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 file is
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 s...@gimp.org wrote:
Hi,
On
12 matches
Mail list logo