Closed corranwebster closed 10 years ago
A little more research: https://deptinfo-ensip.univ-poitiers.fr/ENS/pyside-docs/pysideapi2.html
I'll put together a PR to smooth over the difference.
Yep, I expected this. Feel free to do a PR.
Closing as a PySide issue. Can revisit when a PR is ready.
Hey @corranwebster, is a PR to handle this still somewhere on your to-do list?
Not in the near-term - project-based UI work I'm doing it currently mainly in TraitsUI for reasons outside my control.
In the medium term I may get back to Enaml, and then this may be more of an issue for me/Enthought.
@sccolbert: The way this was fixed in enaml 0.6.8 was with the following code:
if qt_api == 'pyqt':
_NATIVE_METHOD_NAMES = {
'open_file': 'getOpenFileNameAndFilter',
'open_files': 'getOpenFileNamesAndFilter',
'save_file': 'getSaveFileNameAndFilter',
'directory': 'getExistingDirectory',
}
else:
_NATIVE_METHOD_NAMES = {
'open_file': 'getOpenFileName',
'open_files': 'getOpenFileNames',
'save_file': 'getSaveFileName',
'directory': 'getExistingDirectory',
}
...
method = getattr(QFileDialog, _NATIVE_METHOD_NAMES[mode])
method(...)
Do you have any problem with this being resolved in the same way now?
The examples/widgets/FileDialog.enaml file fails because of incompatibility between PySide and PyQt:
PySide only supplies getOpenFileName and related functions, without the option to return the filter as well.