[PyKDE] Problem with PyQt4

Detlev Offenbach detlev at die-offenbachs.de
Sat Mar 18 18:31:51 GMT 2006


Hi,

the parameter "selectedFilter" of 
QFileDialog.getOpenFileNameFilter, ...getOpenFileNamesFilter 
and ...getSaveFileNameFilter should be an in and out parameter. If this is 
not possible or not right, please let me know how to select the initial 
filter programatically. In eric4 I am used to have code like:

filter = QString("Python Files (*.py)"
filename, selectedFilter = QFileDialog.getSaveFileNameFilter(\
	self, QString("Save source"), startdir, 
	QString("Python CGI Files (*.cgi);;Python Files (*.py)"),
	filter)

However, the above code gives an error about a wrong type for parameter 5. 
Please help.

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de




More information about the PyQt mailing list