It is a problem with the dialog, if you set the option DontUseNativeDialog.
then it works fine.
I guess that the problem is with Ubuntu 11.10.
On Mon, Mar 12, 2012 at 5:37 PM, Ray Osborn wrote:
> I think that QtGui.QFileDialog.getSaveFileName returns a tuple, the first
> element of which is the
I think that QtGui.QFileDialog.getSaveFileName returns a tuple, the first
element of which is the file name. You can ignore the second element by using:
fname, _ = QtGui.QFileDialog.getSaveFileName(self, 'Save file',
'/home/untitled.png', 'Images (*.png *.xpm *.jpg)')
Ray
On Mar 12, 2012, at 4
On Mon, Mar 12, 2012 at 4:30 PM, Sourabh Bajaj wrote:
> I am getting a segmentation fault when I try to declare a new image name. I
> can replace a existing image correctly. Why am I getting the error at the
> getSaveFileName dialog ??
[...]
> fname = QtGui.QFileDialog.getSaveFileName(self, 'Save