[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] Re: Savefile dialog (QFileDialog.getSaveFileName).
From: Lukáš Lalinský <lalinsky () gmail ! com>
Date: 2006-08-08 9:18:57
Message-ID: eb9kmg$vp3$1 () sea ! gmane ! org
[Download RAW message or body]
Keo Sophon wrote:
> Hi,
>
> Does anyone know how to detect which button (Save or Cancel) that a user
> clicks on savefile dialog (QFileDialog.getSaveFileName)?
>
> On the other hands, how can I display only the All Supported Files, for
> example (xml, html, odt, po)?
fileName = QtGui.QFileDialog.getSaveFileName(self, "", "", "All Supported Files
(*.xml *.html *.odt *.po)")
if fileName:
# OK
print fileName
else:
# Cancel
print "No file selected!"
-Lukáš
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic