/usr/lib/python2.7/dist-packages/pyqtgraph/widgets/FileDialog.py is in python-pyqtgraph 0.9.10-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from ..Qt import QtGui, QtCore
import sys
__all__ = ['FileDialog']
class FileDialog(QtGui.QFileDialog):
## Compatibility fix for OSX:
## For some reason the native dialog doesn't show up when you set AcceptMode to AcceptSave on OS X, so we don't use the native dialog
def __init__(self, *args):
QtGui.QFileDialog.__init__(self, *args)
if sys.platform == 'darwin':
self.setOption(QtGui.QFileDialog.DontUseNativeDialog)
|