Hi all,
in an import plugin how can I edit the field values shown in the import dialogue using the getPreview member?

I try to explain a bit more my question:
in the __init__ member of my import plugin I define the "column" textField where the user can write the names of the data columns to import, but at this moment programatically I don't know the names of the columns stored in the file.

In the getPrewiev member I read the first part of my file where the stored columns are defined, so now I know their names and I'd like to put them in the textfield so that the user can chose or modify them without having to write all by hand.
I tried simply to use this in the getPreview member:
field.FieldText("columns", descr=u"Columns to import (comma separared list)", default=", ".join(foundColumnNames) At first It seems to work but, if I click on browse and select different files the getPreview is called, but the shown value doesn't change reflecting the new column names.

Thanks a lot,
Valerio.

_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à