Add "file" type to INX UI parameters
Bug #1070193 reported by
Rena Kunisaki
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
In a .inx file, it's possible to define various UI widget types like text, boolean, color... I suggest to add "file" to this list. This would function the same as "string", except it would also add a button to select a file to fill in the text field. It might have an option to verify that the selected file exists before calling the script (you'd want this for selecting existing files, but not if your script creates a new file).
tags: | added: extensions-plugins |
Changed in inkscape: | |
importance: | Undecided → Wishlist |
tags: | added: ui |
Changed in inkscape: | |
status: | New → Confirmed |
To post a comment you must log in.
Ideally add a new type to the inx parameters which allows selection of a file by using the systems file chooser. wiki.inkscape. org/wiki/ index.php/ INX_Parameters wiki.inkscape. org/wiki/ index.php/ INX_extension_ descriptor_ format
Existing inx params are here:
http://
and param defines are here:
http://
Ideally a new parameter of type filename which is a string. and invokes the system file browser with options for:
- filetypes(list of extension strings) - to filter on
- allow multiple - True/False
- initial directory - including ., .., a path (unvalidated)
Which would return a list of strings of full paths. or just force it to be single only if this is easier.
However - it is worth noting that if tk was included in the distro then we could use their filechooser instead of this extra work.