<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: An Introduction to PyQt: creating GUIs with Python&#8217;s QT bindings</title>
	<atom:link href="http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/</link>
	<description>one man's journey into python...</description>
	<lastBuildDate>Wed, 10 Mar 2010 18:15:25 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: gavranha</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-154361</link>
		<dc:creator>gavranha</dc:creator>
		<pubDate>Thu, 03 Dec 2009 22:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-154361</guid>
		<description>Thanks a lot for your time writing so useful tutorial. I&#039;m just starting and the big trouble for a newbie is to be able to see the whole thing in the first steps. You do that. Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your time writing so useful tutorial. I&#8217;m just starting and the big trouble for a newbie is to be able to see the whole thing in the first steps. You do that. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shraddha</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-153487</link>
		<dc:creator>Shraddha</dc:creator>
		<pubDate>Sat, 21 Nov 2009 22:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-153487</guid>
		<description>Thanks a ton for this post!
You saved so much of my time.</description>
		<content:encoded><![CDATA[<p>Thanks a ton for this post!<br />
You saved so much of my time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian N.</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-152908</link>
		<dc:creator>brian N.</dc:creator>
		<pubDate>Sun, 08 Nov 2009 01:49:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-152908</guid>
		<description>hey nice tutorial..Altough..where in the code does it say to put in: self.create_widgets()

in the :

def __init__(self,win_parent = None):
                # Init the base claas
                QtGui.QMainWindow.__init__(self,win_parent)
                self.create_widgets()

i cant seem to find where its put in.

PS.im a newbie to python trying to learn,so maybe its just me...;)</description>
		<content:encoded><![CDATA[<p>hey nice tutorial..Altough..where in the code does it say to put in: self.create_widgets()</p>
<p>in the :</p>
<p>def __init__(self,win_parent = None):<br />
                # Init the base claas<br />
                QtGui.QMainWindow.__init__(self,win_parent)<br />
                self.create_widgets()</p>
<p>i cant seem to find where its put in.</p>
<p>PS.im a newbie to python trying to learn,so maybe its just me&#8230;;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-147399</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Fri, 19 Jun 2009 05:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-147399</guid>
		<description>Hi,

regarding the &quot;TypeError: argument 1 of QObject.connect() has an invalid type&quot; above...

The trick is you shouldn&#039;t do:
self.connect(self.hello_button, QtCore.SINGAL(...), self.on_hello_clicked)
but instead
self.hello_button.connect(QtCore.SINGAL(...), self.on_hello_clicked)

I.e. don&#039;t call self&#039;s connect() but hello_button&#039;s connect().</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>regarding the &#8220;TypeError: argument 1 of QObject.connect() has an invalid type&#8221; above&#8230;</p>
<p>The trick is you shouldn&#8217;t do:<br />
self.connect(self.hello_button, QtCore.SINGAL(&#8230;), self.on_hello_clicked)<br />
but instead<br />
self.hello_button.connect(QtCore.SINGAL(&#8230;), self.on_hello_clicked)</p>
<p>I.e. don&#8217;t call self&#8217;s connect() but hello_button&#8217;s connect().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AACF</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-144560</link>
		<dc:creator>AACF</dc:creator>
		<pubDate>Tue, 05 May 2009 02:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-144560</guid>
		<description>Whenever I have a doubt, I come here to read about your articles, and is a great pleasure to see yours skill&#039;s increment. keep on with excelent work.</description>
		<content:encoded><![CDATA[<p>Whenever I have a doubt, I come here to read about your articles, and is a great pleasure to see yours skill&#8217;s increment. keep on with excelent work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cynyr</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-136519</link>
		<dc:creator>Cynyr</dc:creator>
		<pubDate>Mon, 23 Feb 2009 04:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-136519</guid>
		<description>This is probably beyond the scope of this article, but say you wanted to pass a few options to self.on_hello_clicked. How would you do it? everything i have tried has not  worked.

Thanks
Cynyr</description>
		<content:encoded><![CDATA[<p>This is probably beyond the scope of this article, but say you wanted to pass a few options to self.on_hello_clicked. How would you do it? everything i have tried has not  worked.</p>
<p>Thanks<br />
Cynyr</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nabash</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-123499</link>
		<dc:creator>nabash</dc:creator>
		<pubDate>Fri, 31 Oct 2008 06:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-123499</guid>
		<description>Hi,
Nice tutorial! I find this site very useful, it helped me with my first steps with wxPython and as thinking to start with PyQt this entry is right in time.
One comment (usability not python...) in the blog main page when there is a preview for the post the links are not working (the table of content anchors).
Keep on with the good job.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Nice tutorial! I find this site very useful, it helped me with my first steps with wxPython and as thinking to start with PyQt this entry is right in time.<br />
One comment (usability not python&#8230;) in the blog main page when there is a preview for the post the links are not working (the table of content anchors).<br />
Keep on with the good job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: axl456</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-120317</link>
		<dc:creator>axl456</dc:creator>
		<pubDate>Thu, 16 Oct 2008 05:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-120317</guid>
		<description>thanks for the tutorial!!</description>
		<content:encoded><![CDATA[<p>thanks for the tutorial!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selsine</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-114001</link>
		<dc:creator>selsine</dc:creator>
		<pubDate>Sun, 21 Sep 2008 18:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-114001</guid>
		<description>Hi Matt,

You bring up a good point and a problem that I have had with GUI based Python projects in general. 

I&#039;m honestly not sure about how large the general PyQt4 install base is. I don&#039;t think that most Linux machines will have it installed by default but I could be wrong about that. 

I have a feeling that GTK and Gnome have been getting more and more popular over the last few years, and it seems to be almost the default for more new Linux applications. That being said Qt4 is a pretty big step forward and you may start to see more applications created using it.

Short answer: I don&#039;t think PQt4 will be on most machines by default.

Long answer: That may change over time.

But these are just my opinions, someone else more familiar with the project may have more information.</description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>You bring up a good point and a problem that I have had with GUI based Python projects in general. </p>
<p>I&#8217;m honestly not sure about how large the general PyQt4 install base is. I don&#8217;t think that most Linux machines will have it installed by default but I could be wrong about that. </p>
<p>I have a feeling that GTK and Gnome have been getting more and more popular over the last few years, and it seems to be almost the default for more new Linux applications. That being said Qt4 is a pretty big step forward and you may start to see more applications created using it.</p>
<p>Short answer: I don&#8217;t think PQt4 will be on most machines by default.</p>
<p>Long answer: That may change over time.</p>
<p>But these are just my opinions, someone else more familiar with the project may have more information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selsine</title>
		<link>http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/comment-page-1/#comment-113998</link>
		<dc:creator>selsine</dc:creator>
		<pubDate>Sun, 21 Sep 2008 18:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=88#comment-113998</guid>
		<description>Hi meushi,

Thanks for the comment. I spelled it out in th example so that people could see where all of the functions were coming from. I also mention the following in the article right after introducing the signal code: &quot;Note: We could just as easily have called self.connect since a QMainWindow is a descendant of the QObject class.&quot;

Using the code from the note would give you code similar to the following, which appears to be the standard when using PyQt4:

[code lang=&quot;Python&quot;]
self.connect(self.hello_button
    , QtCore.SIGNAL(&quot;clicked()&quot;)
    , self.on_hello_clicked)
[/code]

The code you suggest however does not work as you will get the following error:

[code]
TypeError: argument 1 of QObject.connect() has an invalid type
[/code]</description>
		<content:encoded><![CDATA[<p>Hi meushi,</p>
<p>Thanks for the comment. I spelled it out in th example so that people could see where all of the functions were coming from. I also mention the following in the article right after introducing the signal code: &#8220;Note: We could just as easily have called self.connect since a QMainWindow is a descendant of the QObject class.&#8221;</p>
<p>Using the code from the note would give you code similar to the following, which appears to be the standard when using PyQt4:</p>
<div class="hl-surround" ><div class="hl-main"><pre>self.connect(self.hello_button
    , QtCore.SIGNAL(&quot;clicked()&quot;)
    , self.on_hello_clicked)</pre></div></div>
<p>The code you suggest however does not work as you will get the following error:</p>
<div class="hl-surround" style="height:28px;"><div class="hl-main"><pre>TypeError: argument 1 of QObject.connect() has an invalid type</pre></div></div>
]]></content:encoded>
	</item>
</channel>
</rss>
