<?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: Creating a GUI using PyGTK and Glade</title>
	<atom:link href="http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/</link>
	<description>one man&#039;s journey into python...</description>
	<lastBuildDate>Sat, 18 May 2013 08:33:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Landscaping Houston TXm Landscaping The Woodlands TX</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-248230</link>
		<dc:creator>Landscaping Houston TXm Landscaping The Woodlands TX</dc:creator>
		<pubDate>Sat, 18 May 2013 08:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-248230</guid>
		<description>Hey there, I think your blog might be having browser 
compatibility issues. When I look at your blog site in Firefox, it looks fine but when opening in 
Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, 
very good blog!</description>
		<content:encoded><![CDATA[<p>Hey there, I think your blog might be having browser<br />
compatibility issues. When I look at your blog site in Firefox, it looks fine but when opening in<br />
Internet Explorer, it has some overlapping.<br />
I just wanted to give you a quick heads up! Other then that,<br />
very good blog!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jelly roll kraemer</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-248215</link>
		<dc:creator>jelly roll kraemer</dc:creator>
		<pubDate>Sat, 11 May 2013 14:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-248215</guid>
		<description>Heya i am for the first time here. I came across this 
board and I in finding It truly helpful &amp; it helped me out much.
I am hoping to offer something back and help others 
like you aided me.</description>
		<content:encoded><![CDATA[<p>Heya i am for the first time here. I came across this<br />
board and I in finding It truly helpful &amp; it helped me out much.<br />
I am hoping to offer something back and help others<br />
like you aided me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KP</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-246187</link>
		<dc:creator>KP</dc:creator>
		<pubDate>Sat, 16 Feb 2013 23:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-246187</guid>
		<description>Very good tutorial. I followed the instructions step by step, the ran the python code. Nothing HAPPENED--the Hello World window did not appear...I am using Windows 7. Is that an issue? What code modifications are needed? See code below: I change sys to os--sys kept throwing up:

Traceback (most recent call last):
  File &quot;C:\...(path)
    sys.exit(1)
SystemExit: 1</description>
		<content:encoded><![CDATA[<p>Very good tutorial. I followed the instructions step by step, the ran the python code. Nothing HAPPENED&#8211;the Hello World window did not appear&#8230;I am using Windows 7. Is that an issue? What code modifications are needed? See code below: I change sys to os&#8211;sys kept throwing up:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;C:\&#8230;(path)<br />
    sys.exit(1)<br />
SystemExit: 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Tiddens</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-238760</link>
		<dc:creator>Mark Tiddens</dc:creator>
		<pubDate>Tue, 07 Aug 2012 00:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-238760</guid>
		<description>Nope - &quot;::HLIGHT_BLOCK_1::&quot; doesn&#039;t work.  Can someone advise how to post code here?</description>
		<content:encoded><![CDATA[<p>Nope &#8211; &#8220;::HLIGHT_BLOCK_1::&#8221; doesn&#8217;t work.  Can someone advise how to post code here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Tiddens</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-238758</link>
		<dc:creator>Mark Tiddens</dc:creator>
		<pubDate>Tue, 07 Aug 2012 00:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-238758</guid>
		<description>Note that the above coce will not run if you cut and paste it because, unfortunately, this forum doesn&#039;t seem to provide an option to insert code without it losing it&#039;s indentations, which of course Python must have.

I&#039;m going try to use the code prefixes used on other forum comments to see if the indents are preserved:

::HLIGHT_BLOCK_1::</description>
		<content:encoded><![CDATA[<p>Note that the above coce will not run if you cut and paste it because, unfortunately, this forum doesn&#8217;t seem to provide an option to insert code without it losing it&#8217;s indentations, which of course Python must have.</p>
<p>I&#8217;m going try to use the code prefixes used on other forum comments to see if the indents are preserved:</p>
<p>::HLIGHT_BLOCK_1::</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Tiddens</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-238757</link>
		<dc:creator>Mark Tiddens</dc:creator>
		<pubDate>Tue, 07 Aug 2012 00:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-238757</guid>
		<description>The Glade library is included in GTK now (called gtk.Builder), so the Glade library (Libglade) has been depreciated and is no longer needed.  So, when you create a new project, choose &quot;GtkBuilder&quot; as your format rather than &quot;Libglade&quot;.  And then you can remove all references and use of .glade in your code, with the result as follows:

import sys
try:
    import pygtk
    pygtk.require(&quot;2.0&quot;)
except:
    pass
try:
    import gtk
except:
    sys.exit(1)

class HelloWorldGTK:
    &quot;&quot;&quot;This is a Hello World GTK application&quot;&quot;&quot;

    def __init__(self):
        
        #Set the Glade file
        self.builder = gtk.Builder()
        self.builder.add_from_file(&quot;pyhelloworld.glade&quot;)
        
        #Get the Main Window, and connect the &quot;destroy&quot; event
        #self.window = self.wTree.get_widget(&quot;MainWindow&quot;)
        #if (self.window):
        #    self.window.connect(&quot;destroy&quot;, gtk.main_quit) 
        
        dic = {
            &quot;on_btnHelloWorld_clicked&quot; : self.btnHelloWorld_clicked,
            &quot;on_MainWindow_destroy&quot; : self.quit
            }
        
        self.builder.connect_signals( dic )
        
    def btnHelloWorld_clicked(self, widget):
        #print &quot;Hello World!&quot;
        #self.builder.get_object(&quot;label1&quot;)
        #lbl = &quot;label1&quot;
        #lbl.set_text(&quot;Hello World!&quot;)
        self.builder.get_object(&quot;label1&quot;).set_text(&quot;Hello World!&quot;)
        
    def quit(self, widget):
        sys.exit(0)
            
if __name__ == &quot;__main__&quot;:
    HelloWorldGTK = HelloWorldGTK()
    gtk.main()</description>
		<content:encoded><![CDATA[<p>The Glade library is included in GTK now (called gtk.Builder), so the Glade library (Libglade) has been depreciated and is no longer needed.  So, when you create a new project, choose &#8220;GtkBuilder&#8221; as your format rather than &#8220;Libglade&#8221;.  And then you can remove all references and use of .glade in your code, with the result as follows:</p>
<p>import sys<br />
try:<br />
    import pygtk<br />
    pygtk.require(&#8220;2.0&#8243;)<br />
except:<br />
    pass<br />
try:<br />
    import gtk<br />
except:<br />
    sys.exit(1)</p>
<p>class HelloWorldGTK:<br />
    &#8220;&#8221;"This is a Hello World GTK application&#8221;"&#8221;</p>
<p>    def __init__(self):</p>
<p>        #Set the Glade file<br />
        self.builder = gtk.Builder()<br />
        self.builder.add_from_file(&#8220;pyhelloworld.glade&#8221;)</p>
<p>        #Get the Main Window, and connect the &#8220;destroy&#8221; event<br />
        #self.window = self.wTree.get_widget(&#8220;MainWindow&#8221;)<br />
        #if (self.window):<br />
        #    self.window.connect(&#8220;destroy&#8221;, gtk.main_quit) </p>
<p>        dic = {<br />
            &#8220;on_btnHelloWorld_clicked&#8221; : self.btnHelloWorld_clicked,<br />
            &#8220;on_MainWindow_destroy&#8221; : self.quit<br />
            }</p>
<p>        self.builder.connect_signals( dic )</p>
<p>    def btnHelloWorld_clicked(self, widget):<br />
        #print &#8220;Hello World!&#8221;<br />
        #self.builder.get_object(&#8220;label1&#8243;)<br />
        #lbl = &#8220;label1&#8243;<br />
        #lbl.set_text(&#8220;Hello World!&#8221;)<br />
        self.builder.get_object(&#8220;label1&#8243;).set_text(&#8220;Hello World!&#8221;)</p>
<p>    def quit(self, widget):<br />
        sys.exit(0)</p>
<p>if __name__ == &#8220;__main__&#8221;:<br />
    HelloWorldGTK = HelloWorldGTK()<br />
    gtk.main()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Libglade python &#124; Fivedollarsbyt</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-238743</link>
		<dc:creator>Libglade python &#124; Fivedollarsbyt</dc:creator>
		<pubDate>Thu, 29 Mar 2012 07:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-238743</guid>
		<description>[...] learning python &#187; Blog Archive &#187; Creating a GUI using PyGTK and &#8230;May 7, 2006 &#8230; I am running KDE with pyhton2.4 and python-gtk2 and libglade is installed too? selsine Says: October 2nd, 2006 at 5:08 pm. Hi Paul, &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] learning python &#187; Blog Archive &#187; Creating a GUI using PyGTK and &#8230;May 7, 2006 &#8230; I am running KDE with pyhton2.4 and python-gtk2 and libglade is installed too? selsine Says: October 2nd, 2006 at 5:08 pm. Hi Paul, &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-238723</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Mon, 20 Feb 2012 07:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-238723</guid>
		<description>when i run the following code.It shows the gui of treeview with only column name and nothing displayed content below it:-


import pygtk
pygtk.require(&#039;2.0&#039;)
import gtk
import gobject

class Window:
    def __init__(self):
        self.builder = gtk.Builder()
        self.builder.add_from_file(&#039;Tree.xml&#039;)
        self.main_window = self.builder.get_object(&quot;window&quot;)
        
        #getting the treeview from the widget tree
        self.H2EView =self.builder.get_object(&quot;treeview&quot;)

        dic= {&quot;on_window_destroy&quot;:self.quit}
        self.builder.connect_signals(dic)

        # adding column to the treeview
        self.add_column_name(&quot; Hindi &quot;,0)
        self.add_column_name(&quot; English &quot;,1)

        #Creating ListStore model and linking with treeview Object
        self.H2EList = gtk.ListStore(str,str)
        self.H2EView.set_model(self.H2EList)

        # Adding  elemrnts to the table
        self.H2EList.append([&quot;manDua&quot; , &quot;Ragi&quot;])

        self.main_window.show_all()
        
    def add_column_name (self,title,columnId):
        column = gtk.TreeViewColumn(title, gtk.CellRendererText() ,text=columnId)
        column.set_resizable(True)
        column.set_sort_column_id(columnId)
        self.H2EView.append_column(gtk.TreeViewColumn(title))    
    
    def quit(self, widget):
        print &quot;Window closed&quot;
        gtk.main_quit()

def main():
    app = Window()
    gtk.main() 

if __name__ == &quot;__main__&quot;:
    main()

and the following is the Tree.xml

-  
&lt;!-- interface-naming-policy project-wide --&gt;
 - True False True  - - True True automatic automatic - - True True      

kindly assist</description>
		<content:encoded><![CDATA[<p>when i run the following code.It shows the gui of treeview with only column name and nothing displayed content below it:-</p>
<p>import pygtk<br />
pygtk.require(&#8217;2.0&#8242;)<br />
import gtk<br />
import gobject</p>
<p>class Window:<br />
    def __init__(self):<br />
        self.builder = gtk.Builder()<br />
        self.builder.add_from_file(&#8216;Tree.xml&#8217;)<br />
        self.main_window = self.builder.get_object(&#8220;window&#8221;)</p>
<p>        #getting the treeview from the widget tree<br />
        self.H2EView =self.builder.get_object(&#8220;treeview&#8221;)</p>
<p>        dic= {&#8220;on_window_destroy&#8221;:self.quit}<br />
        self.builder.connect_signals(dic)</p>
<p>        # adding column to the treeview<br />
        self.add_column_name(&#8221; Hindi &#8220;,0)<br />
        self.add_column_name(&#8221; English &#8220;,1)</p>
<p>        #Creating ListStore model and linking with treeview Object<br />
        self.H2EList = gtk.ListStore(str,str)<br />
        self.H2EView.set_model(self.H2EList)</p>
<p>        # Adding  elemrnts to the table<br />
        self.H2EList.append(["manDua" , "Ragi"])</p>
<p>        self.main_window.show_all()</p>
<p>    def add_column_name (self,title,columnId):<br />
        column = gtk.TreeViewColumn(title, gtk.CellRendererText() ,text=columnId)<br />
        column.set_resizable(True)<br />
        column.set_sort_column_id(columnId)<br />
        self.H2EView.append_column(gtk.TreeViewColumn(title))    </p>
<p>    def quit(self, widget):<br />
        print &#8220;Window closed&#8221;<br />
        gtk.main_quit()</p>
<p>def main():<br />
    app = Window()<br />
    gtk.main() </p>
<p>if __name__ == &#8220;__main__&#8221;:<br />
    main()</p>
<p>and the following is the Tree.xml</p>
<p>-<br />
<!-- interface-naming-policy project-wide --><br />
 &#8211; True False True  &#8211; - True True automatic automatic &#8211; - True True      </p>
<p>kindly assist</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: learning python &#187; Blog Archive &#187; New Belorussian/Belarusian Translation</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-190725</link>
		<dc:creator>learning python &#187; Blog Archive &#187; New Belorussian/Belarusian Translation</dc:creator>
		<pubDate>Thu, 21 Apr 2011 14:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-190725</guid>
		<description>[...] everyone, just a quick note to let you know that Bohdan has translated the Creating a GUI using PyGTK and Glade tutorial in to Belorussian/Belarusian. You can view the translation here: Belorussian [...]</description>
		<content:encoded><![CDATA[<p>[...] everyone, just a quick note to let you know that Bohdan has translated the Creating a GUI using PyGTK and Glade tutorial in to Belorussian/Belarusian. You can view the translation here: Belorussian [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kotnik</title>
		<link>http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/comment-page-4/#comment-185652</link>
		<dc:creator>kotnik</dc:creator>
		<pubDate>Mon, 14 Feb 2011 11:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=23#comment-185652</guid>
		<description>@Scott,

in Glade-3, main window is by default invisible. To see it, you need to select main window, go to Common tab and select Visible -&gt; Yes.</description>
		<content:encoded><![CDATA[<p>@Scott,</p>
<p>in Glade-3, main window is by default invisible. To see it, you need to select main window, go to Common tab and select Visible -&gt; Yes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
