Personal tools
You are here: Home Forum Use Salome 9.3.0: Possible bug when creating a preference that opens a directory dialog

Salome 9.3.0: Possible bug when creating a preference that opens a directory dialog

Up to Use

Salome 9.3.0: Possible bug when creating a preference that opens a directory dialog

Posted by Gregor Simic at January 16. 2020

Hello,

 

I'm trying to add a preference that has a QAction that opens a directory only dialog for selecting a directory. I first created the preference with the SalomePyQt.PT_File type. Then I modified the "mode" attribute of the PT_File type preference to value 2 (PT_Directory).

But no matter what I do, the preference is always a file dialog. I have scoured LightApp_Application.cxx and SALOME_PYQT_Module.cxx but it didn't help. Is there something I am missing?

 

The attached code shows the relevant lines of code.

Attachments

Re: Salome 9.3.0: Possible bug when creating a preference that opens a directory dialog

Posted by Vadim SANDLER at January 17. 2020
Property name is incorrect. It must be "path_type", and not "mode".

Re: Salome 9.3.0: Possible bug when creating a preference that opens a directory dialog

Posted by Gregor Simic at January 17. 2020

Thank you Vadim, that solved it.

Regards

Powered by Ploneboard
Document Actions