<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>m-eken &#187; google</title>
	<atom:link href="http://m-eken.com/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://m-eken.com</link>
	<description></description>
	<lastBuildDate>Wed, 05 Oct 2011 19:17:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google Search with Python 3 and Tkinter</title>
		<link>http://m-eken.com/2010/02/08/google-search-with-python-3-and-tkinter/</link>
		<comments>http://m-eken.com/2010/02/08/google-search-with-python-3-and-tkinter/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 23:35:02 +0000</pubDate>
		<dc:creator>Eken</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[python 3]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[tkinter]]></category>
		<category><![CDATA[urllib]]></category>

		<guid isPermaLink="false">http://m-eken.com/?p=631</guid>
		<description><![CDATA[Google Search with Python and Tkinter; # http://m-eken.com # python 3 #google Searcher import tkinter,urllib.request,urllib.parse,urllib.error from tkinter import * from tkinter import ttk class window: def __init__(self,root): self.root=root self.root.title("Google Searcher") ttk.Frame(self.root, width=500,height=250).pack() self.init_widgets() def init_widgets(self): ttk.Button(self.root, command=self.insert_text,text="Gooo",width="10").place(x=400,y=10) self.txt=tkinter.Text(self.root,width="52",height="10", font=12) self.txt.place(x=10,y=40) self.searchWord=tkinter.Text(self.root,width="42",height="1", font=12) self.searchWord.insert(tkinter.INSERT,"google search with python 3 tkinter") self.searchWord.place(x=10,y=15) def insert_text(self): GWord=self.searchWord.get(1.0,END) url="http://www.google.com/search?hl=en&#038;q="+"+".join(GWord.split()) req=urllib.request.Request(url) req.add_header("User-Agent","Mozilla/5.0 [...]]]></description>
			<content:encoded><![CDATA[<p>Google Search with Python and Tkinter;</p>
<pre>
<code># http://m-eken.com
# python 3
#google Searcher
import tkinter,urllib.request,urllib.parse,urllib.error
from tkinter import *
from tkinter import ttk

class window:
    def __init__(self,root):
        self.root=root
        self.root.title("Google Searcher")
        ttk.Frame(self.root, width=500,height=250).pack()
        self.init_widgets()

    def init_widgets(self):
        ttk.Button(self.root, command=self.insert_text,text="Gooo",width="10").place(x=400,y=10)
        self.txt=tkinter.Text(self.root,width="52",height="10", font=12)
        self.txt.place(x=10,y=40)
        self.searchWord=tkinter.Text(self.root,width="42",height="1", font=12)
        self.searchWord.insert(tkinter.INSERT,"google search with python 3 tkinter")
        self.searchWord.place(x=10,y=15)

    def insert_text(self):
        GWord=self.searchWord.get(1.0,END)
        url="http://www.google.com/search?hl=en&#038;q="+"+".join(GWord.split())
        req=urllib.request.Request(url)
        req.add_header("User-Agent","Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13")
        GWord= urllib.request.urlopen(req).read()
        self.txt.insert(tkinter.INSERT,  GWord)

if __name__=="__main__":
    root=tkinter.Tk()
    window(root)
    root.mainloop()</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://m-eken.com/2010/02/08/google-search-with-python-3-and-tkinter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

