<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sun May 26, 2013 7:02 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sun May 26, 2013 7:02 am</pubDate>
  <lastBuildDate>Sun May 26, 2013 7:02 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95582#95582</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=65997'&gt;chriswadams&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Dec 13, 2010 2:35 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hey all --&lt;br /&gt;
&lt;br /&gt;
After fussing with the code some more, I finally got Mega Translate working as a PyGTK project, and I thought everyone would be interested in seeing the finished code:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[code]&lt;br /&gt;
#!/usr/bin/env python&lt;br /&gt;
# Mega Translate - Google translation engine&lt;br /&gt;
# based on a video by Paul Hudson at &lt;a href=&quot;http://www.tuxradar.com&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;www.tuxradar.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
import pygtk&lt;br /&gt;
pygtk.require('2.0')&lt;br /&gt;
import urllib&lt;br /&gt;
import simplejson&lt;br /&gt;
import gtk&lt;br /&gt;
&lt;br /&gt;
def translate_clicked(btn):&lt;br /&gt;
    # get two language codes &amp;amp; text, then send them to Google Translate&lt;br /&gt;
    url = &amp;quot;http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&amp;quot;&lt;br /&gt;
    source = combofrom.get_active_text()&lt;br /&gt;
    if source == &amp;quot;??&amp;quot;&lt;br /&gt;
        source = &amp;quot;auto&amp;quot;&lt;br /&gt;
    target = comboto.get_active_text()&lt;br /&gt;
 &lt;br /&gt;
    params = {}       &lt;br /&gt;
    params['q'] = textfrom.get_text()&lt;br /&gt;
    params['langpair'] = source + &amp;quot;|&amp;quot; + target&lt;br /&gt;
    &lt;br /&gt;
    # if you want an API key, register with Google, then plug it in to the&lt;br /&gt;
    # following line, and uncomment&lt;br /&gt;
    # params['key'] = &amp;quot;YOUR-KEY-HERE&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    data = urllib.urlencode(params)&lt;br /&gt;
    response = urllib.urlopen(url, data)&lt;br /&gt;
    json = simplejson.load(response)&lt;br /&gt;
    textto.set_text(json['responseData']['translatedText'])&lt;br /&gt;
&lt;br /&gt;
# create window&lt;br /&gt;
window = gtk.Window()&lt;br /&gt;
vbox = gtk.VBox()&lt;br /&gt;
window.add(vbox)&lt;br /&gt;
&lt;br /&gt;
# create two comboboxes &amp;amp; two text entry boxes&lt;br /&gt;
hboxtop = gtk.HBox()&lt;br /&gt;
combofrom = gtk.combo_box_new_text()&lt;br /&gt;
hboxtop.pack_start(combofrom)&lt;br /&gt;
textfrom = gtk.Entry()&lt;br /&gt;
hboxtop.pack_start(textfrom)&lt;br /&gt;
vbox.pack_start(hboxtop)&lt;br /&gt;
&lt;br /&gt;
hboxbottom = gtk.HBox()&lt;br /&gt;
comboto = gtk.combo_box_new_text()&lt;br /&gt;
hboxbottom.pack_start(comboto)&lt;br /&gt;
textto = gtk.Entry()&lt;br /&gt;
textto.set_editable(False)&lt;br /&gt;
hboxbottom.pack_start(textto)&lt;br /&gt;
vbox.pack_start(hboxbottom)&lt;br /&gt;
&lt;br /&gt;
# create a 'Translate' button &lt;br /&gt;
translate = gtk.Button(&amp;quot;Translate&amp;quot;)&lt;br /&gt;
vbox.pack_start(translate)&lt;br /&gt;
&lt;br /&gt;
# add language codes to comboboxes&lt;br /&gt;
combofrom.append_text(&amp;quot;??&amp;quot;)&lt;br /&gt;
combofrom.append_text(&amp;quot;en&amp;quot;)&lt;br /&gt;
combofrom.append_text(&amp;quot;fr&amp;quot;)&lt;br /&gt;
combofrom.append_text(&amp;quot;es&amp;quot;)&lt;br /&gt;
combofrom.append_text(&amp;quot;de&amp;quot;)&lt;br /&gt;
comboto.append_text(&amp;quot;en&amp;quot;)&lt;br /&gt;
comboto.append_text(&amp;quot;fr&amp;quot;)&lt;br /&gt;
comboto.append_text(&amp;quot;es&amp;quot;)&lt;br /&gt;
comboto.append_text(&amp;quot;de&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
# connect 'Translate' button to 'translate_clicked' function&lt;br /&gt;
translate.connect('clicked', translate_clicked)&lt;br /&gt;
&lt;br /&gt;
# display window&lt;br /&gt;
window.set_title(&amp;quot;Mega Translate&amp;quot;)&lt;br /&gt;
window.show_all()&lt;br /&gt;
gtk.main()[/code]&lt;br /&gt;
&lt;br /&gt;
Note that this version of the program differs a little from the previous version I posted. I tweaked the setup of the input boxes, and I had to change the &amp;quot;translate_clicked&amp;quot; function slightly, but it works. Also, Paul Hudson's version of Mega Translate didn't need an API key, but Google encourages you to use one, so I left space to plug it in.&lt;br /&gt;
&lt;br /&gt;
larcky wrote:&lt;br /&gt;
[quote]Welcome to the maddening world of programming, Chris![/quote]&lt;br /&gt;
Thanks! Glad to be here! javascript&amp;#058;emoticon('&lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;')&lt;br /&gt;
And thanks again for your help, larcky.&lt;br /&gt;
Chris Adams.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95582#95582</comments>
                                        <author>chriswadams</author>
                                        <pubDate>Mon Dec 13, 2010 2:35 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95582#95582</guid>
                                      </item>
                                      <item>
                                        <title>Re: PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95533#95533</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67058'&gt;larcky&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Dec 11, 2010 7:20 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &amp;quot;The way to succeed is to double your failure rate.&amp;quot; - Thomas J. Watson, founder of IBM.&lt;br /&gt;
By that rule I should now be CEO of Sony Corporation  &lt;img src=&quot;images/smiles/icon_rolleyes.gif&quot; alt=&quot;Rolling Eyes&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
Welcome to the maddening world of programming, Chris!</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95533#95533</comments>
                                        <author>larcky</author>
                                        <pubDate>Sat Dec 11, 2010 7:20 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95533#95533</guid>
                                      </item>
                                      <item>
                                        <title>Re: PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95525#95525</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=65997'&gt;chriswadams&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Dec 10, 2010 8:45 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Unbelievable. I had put the &amp;quot;gtk.main()&amp;quot; command in various places, not thinking to put it at the very end. Of course, it worked once I put it in the right place. Man, I feel stupid. javascript&amp;#058;emoticon('&lt;img src=&quot;images/smiles/icon_redface.gif&quot; alt=&quot;Embarassed&quot; border=&quot;0&quot; /&gt;')&lt;br /&gt;
&lt;br /&gt;
Thanks for your help larcky!&lt;br /&gt;
Chris Adams.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95525#95525</comments>
                                        <author>chriswadams</author>
                                        <pubDate>Fri Dec 10, 2010 8:45 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95525#95525</guid>
                                      </item>
                                      <item>
                                        <title>Re: PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95524#95524</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67058'&gt;larcky&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Dec 10, 2010 7:14 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Sorry: fixed!</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95524#95524</comments>
                                        <author>larcky</author>
                                        <pubDate>Fri Dec 10, 2010 7:14 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95524#95524</guid>
                                      </item>
                                      <item>
                                        <title>Re: PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95523#95523</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=39'&gt;towy71&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Dec 10, 2010 6:22 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      larcky&lt;br /&gt;
could you please crop the picture and reduce it, that will enable people with smaller screens appreciate it more &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95523#95523</comments>
                                        <author>towy71</author>
                                        <pubDate>Fri Dec 10, 2010 6:22 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95523#95523</guid>
                                      </item>
                                      <item>
                                        <title>Re: PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95522#95522</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67058'&gt;larcky&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Dec 10, 2010 5:28 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi Chris&lt;br /&gt;
What didn't work?  I've just copied and pasted your code into gedit, added gtk.main() to the end, saved it and run it and a GUI popped up  &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
Here's a screenshot:&lt;br /&gt;
&lt;img src=&quot;http://i1192.photobucket.com/albums/aa335/maffyoo/mega_translate.png&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
You did put that extra line right at the very end?  That's how you enter the GTK event loop.&lt;br /&gt;
See you, larcky</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95522#95522</comments>
                                        <author>larcky</author>
                                        <pubDate>Fri Dec 10, 2010 5:28 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95522#95522</guid>
                                      </item>
                                      <item>
                                        <title>Re: PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95504#95504</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=65997'&gt;chriswadams&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Dec 10, 2010 6:13 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi larcky --&lt;br /&gt;
&lt;br /&gt;
Thanks for the suggestion. I tried it, but it didn't work. I'm pretty much at a loss to explain it.&lt;br /&gt;
&lt;br /&gt;
Chris A.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95504#95504</comments>
                                        <author>chriswadams</author>
                                        <pubDate>Fri Dec 10, 2010 6:13 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95504#95504</guid>
                                      </item>
                                      <item>
                                        <title>Re: PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95370#95370</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67058'&gt;larcky&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Dec 03, 2010 1:06 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi Chris&lt;br /&gt;
Did you solve this?&lt;br /&gt;
I've only programmed GTK with gtkmm (the C++ wrapper), but AFAIK you set things off in Python with a call to &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;gtk.main&amp;#40;&amp;#41;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;  Can't see that anywhere in your example.&lt;br /&gt;
Regards, larcky</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95370#95370</comments>
                                        <author>larcky</author>
                                        <pubDate>Fri Dec 03, 2010 1:06 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95370#95370</guid>
                                      </item>
                                      <item>
                                        <title>PyGTK / Google Translate tutorial -- nothing happens!</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=95198#95198</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=65997'&gt;chriswadams&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Nov 27, 2010 12:37 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi all --&lt;br /&gt;
&lt;br /&gt;
I've been working on Paul Hudson's &amp;quot;PyGTK / Google Translate&amp;quot; tutorial over at tuxradar.com, and I wanted to turn the translator application into a script. (Paul only uses the command line in the tutorial.) After I ran the program, and worked out a couple of glitches, I got -- nothing! No window, no error message, nothing. Since the translator app worked fine from the command line, I know it's not a dependency issue. Is there something I need to add to the script to get it working, or am I missing something here?&lt;br /&gt;
&lt;br /&gt;
Here is the code:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
# Mega Translate - Google translation engine&lt;br /&gt;
&lt;br /&gt;
import urllib&lt;br /&gt;
import simplejson&lt;br /&gt;
import gtk&lt;br /&gt;
&lt;br /&gt;
def translate_clicked&amp;#40;btn&amp;#41;&amp;#58;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # get two language codes &amp;amp; two texts, then send them to Google Translate&lt;br /&gt;
&amp;nbsp; &amp;nbsp; url = &amp;quot;http&amp;#58;//ajax.googleapis.com/ajax/services/language/translate&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; source = combofrom.get_active_text&amp;#40;&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; dest = comboto.get_active_text&amp;#40;&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if source == &amp;quot;??&amp;quot;&amp;#58;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source = &amp;quot;&amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; params&amp;#91;'langpair'&amp;#93; = &amp;quot;%s|%s&amp;quot; % &amp;#40;source, dest&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; params&amp;#91;'q'&amp;#93; = textfrom.get_text&amp;#40;&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; data = urllib.urlencode&amp;#40;params&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; response = urllib.urlopen&amp;#40;url, data&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; json = simplejson.load&amp;#40;response&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; textto.set_text&amp;#40;json&amp;#91;'responseData'&amp;#93;&amp;#91;'translatedText'&amp;#93;&amp;#41;&lt;br /&gt;
&lt;br /&gt;
# create window&lt;br /&gt;
window = gtk.Window&amp;#40;&amp;#41;&lt;br /&gt;
vbox = gtk.VBox&amp;#40;&amp;#41;&lt;br /&gt;
&lt;br /&gt;
# create two text entry boxes&lt;br /&gt;
hboxtop = gtk.HBox&amp;#40;&amp;#41;&lt;br /&gt;
hboxbottom = gtk.HBox&amp;#40;&amp;#41;&lt;br /&gt;
vbox.pack_start&amp;#40;hboxtop&amp;#41;&lt;br /&gt;
vbox.pack_start&amp;#40;hboxbottom&amp;#41;&lt;br /&gt;
window.add&amp;#40;vbox&amp;#41;&lt;br /&gt;
&lt;br /&gt;
# create a 'Translate' button&lt;br /&gt;
translate = gtk.Button&amp;#40;&amp;quot;Translate&amp;quot;&amp;#41;&lt;br /&gt;
vbox.pack_start&amp;#40;translate&amp;#41;&lt;br /&gt;
&lt;br /&gt;
# create two comboboxes&lt;br /&gt;
combofrom = gtk.combo_box_new_text&amp;#40;&amp;#41;&lt;br /&gt;
comboto = gtk.combo_box_new_text&amp;#40;&amp;#41;&lt;br /&gt;
textfrom = gtk.Entry&amp;#40;&amp;#41;&lt;br /&gt;
textto = gtk.Entry&amp;#40;&amp;#41;&lt;br /&gt;
textto.set_editable&amp;#40;False&amp;#41;&lt;br /&gt;
hboxtop.pack_start&amp;#40;combofrom&amp;#41;&lt;br /&gt;
hboxtop.pack_start&amp;#40;textfrom&amp;#41;&lt;br /&gt;
hboxbottom.pack_start&amp;#40;comboto&amp;#41;&lt;br /&gt;
hboxtop.pack_start&amp;#40;textto&amp;#41;&lt;br /&gt;
&lt;br /&gt;
# add language codes to comboboxes&lt;br /&gt;
combofrom.append_text&amp;#40;&amp;quot;??&amp;quot;&amp;#41;&lt;br /&gt;
combofrom.append_text&amp;#40;&amp;quot;en&amp;quot;&amp;#41;&lt;br /&gt;
combofrom.append_text&amp;#40;&amp;quot;fr&amp;quot;&amp;#41;&lt;br /&gt;
combofrom.append_text&amp;#40;&amp;quot;es&amp;quot;&amp;#41;&lt;br /&gt;
combofrom.append_text&amp;#40;&amp;quot;de&amp;quot;&amp;#41;&lt;br /&gt;
comboto.append_text&amp;#40;&amp;quot;en&amp;quot;&amp;#41;&lt;br /&gt;
comboto.append_text&amp;#40;&amp;quot;fr&amp;quot;&amp;#41;&lt;br /&gt;
comboto.append_text&amp;#40;&amp;quot;es&amp;quot;&amp;#41;&lt;br /&gt;
comboto.append_text&amp;#40;&amp;quot;de&amp;quot;&amp;#41;&lt;br /&gt;
&lt;br /&gt;
# connect 'Translate' button to 'translate_clicked' function&lt;br /&gt;
translate.connect&amp;#40;'clicked', translate_clicked&amp;#41;&lt;br /&gt;
&lt;br /&gt;
# display window&lt;br /&gt;
window.set_title&amp;#40;&amp;quot;Mega Translate&amp;quot;&amp;#41;&lt;br /&gt;
window.show_all&amp;#40;&amp;#41;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Any help or advice would be appreciated. Thanks,&lt;br /&gt;
Chris Adams</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=95198#95198</comments>
                                        <author>chriswadams</author>
                                        <pubDate>Sat Nov 27, 2010 12:37 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=95198#95198</guid>
                                      </item></channel></rss>