[scribus-dev] a slight (?) modification of scripter command fileDialog()
Gregory Pittman
gpittman at iglou.com
Sun Nov 20 22:55:57 UTC 2016
On 11/20/2016 05:03 PM, ale rimoldi wrote:
> hi
>
>> I am trying to write a script in which you can accumulate a list of
>> image files, to then place inside a set of frames.
>>
>> It's easy enough to set up a while loop to accomplish this, but the
>> subsequent irritation is that each time you bring up the dialog, it is
>> starting in the $HOME directory.
>>
>> This is different from the dialog for Get Image, where the last
>> directory used is saved for the starting point the next time. It would
>> be nice if the fileDialog() command could use the same parameter that
>> is used by fileImportImage, and reset it if it changes.
>
> why don't you select multiple image files in the load dialog and then
> aplly each image to an existing frame or create one?
>
> otherwise, i agree that one should be able to set the current path
> when calling the file open dialog...
>
Not sure I quite understand you. You can only select one file at a time.
Anyway, I have written a script that let's you serially a list of files
one at a time and then applies them to selected frames:
https://wiki.scribus.net/canvas/Gallery.py#gallery2.py
Greg
More information about the scribus-dev
mailing list