A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2003-September/217266.html below:

PyQt: Can't show PY variable in QT filedialog as initially parameter

PyQt: Can't show PY variable in QT filedialog as initially parameterPhil Thompson phil at riverbankcomputing.co.uk
Sat Sep 13 13:17:00 EDT 2003
On Thursday 11 September 2003 5:14 pm, ulysses wrote:
> Hi,
>
> I use PyQt 3.8 non-commercial version in win32. I get a big question.
> I Can't show PY variable in QT filedialog as initially parameter.
>
> Code sample is following:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> fileName="test.avi"
>
> def saveSomething(aString):
>     dl = QFileDialog.getSaveFileName(aString, "*.*", self, "FileDialog")
> or
>     dl = QFileDialog.getSaveFileName(QString(aString), "*.*",
>                                         self, "FileDialog")
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> these code can't show corrent string.
>
> If I use string constant.
>    dl = QFileDialog.getSaveFileName("test.avi", "*.*", self, "FileDialog")
>
> Dialog show it correctly.
>
> Thanks.
>
> Ulysses

Have you got a complete (but small) example that demonstrate's the problem?

Phil




More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4