<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial">I came across this link while I was
trying to do the same thing. It explained everything and might help you
with passing arguments.<br>
<br>
<a class="moz-txt-link-freetext" href="http://blog.qgis.org/node/102">http://blog.qgis.org/node/102</a><br>
<br>
Cheers,<br>
-Scott<br>
<br>
<br>
</font></font><br>
klia wrote:
<blockquote cite="mid:22496972.post@talk.nabble.com" type="cite">
<pre wrap="">
Till Gerken-2 wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Fri, Mar 13, 2009 at 2:23 PM, klia <a class="moz-txt-link-rfc2396E" href="mailto:alwaseem307ster@yahoo.com"><alwaseem307ster@yahoo.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I have this function that is suppose to extract Exif(exchangeable image
formate) from photos and direct the output to an .CSV file (comma
seperated
values)
well the function syntax is like the following:
waseem@home:~/Desktop/Project2/GUI$ python myexif.py -q waseem1.JPG >
test.csv
in the program now my photos are listed in ListWidget...
How can i select photo or multiple photos from the listwidget and execute
the above syntax after clicking a button which is already there in order
to
create a CSV file??
</pre>
</blockquote>
<pre wrap="">Just create a new method that you connect to your button's clicked()
signal and include the Exif extraction code there. Since your Exif
extraction already seems to be in Python, you do not have to execute
any external programs.
connect(yourButton, SIGNAL("clicked(bool)"), yourExifMethod)
The signal is documented here:
<a class="moz-txt-link-freetext" href="http://doc.trolltech.com/4.4/qpushbutton.html#details">http://doc.trolltech.com/4.4/qpushbutton.html#details</a>
<a class="moz-txt-link-freetext" href="http://doc.trolltech.com/4.4/qabstractbutton.html#clicked">http://doc.trolltech.com/4.4/qabstractbutton.html#clicked</a>
Till
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
</pre>
</blockquote>
<pre wrap=""><!---->Thank you for replaying,
creating a connect method ain't a problem for me but how to select photo in
the ListWidget and then executing myexif functiion with -q argument?
</pre>
</blockquote>
</body>
</html>