<?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; python 3</title>
	<atom:link href="http://m-eken.com/tag/python-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://m-eken.com</link>
	<description>&#34;I am a dreamer. Seriously, I&#039;m living on another planet.&#34;</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.2.1</generator>
		<item>
		<title>Python 3 HTML Parse</title>
		<link>http://m-eken.com/2011/04/13/python-3-html-parse/</link>
		<comments>http://m-eken.com/2011/04/13/python-3-html-parse/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 20:29:46 +0000</pubDate>
		<dc:creator>Eken</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[HTMLParse]]></category>
		<category><![CDATA[python 3]]></category>

		<guid isPermaLink="false">http://m-eken.com/?p=686</guid>
		<description><![CDATA[Sample code for HTML parsing with Python 3. &#62;&#62;&#62; from html.parser import HTMLParser &#62;&#62;&#62; parss=HTMLParser() &#62;&#62;&#62; parss.feed('&#60;a href="http://m-eken.com"&#62;link&#60;/a&#62;') &#62;&#62;&#62; parss.get_starttag_text() '&#60;a href="http://m-eken.com"&#62;' &#62;&#62;&#62;]]></description>
			<content:encoded><![CDATA[<p>Sample code for HTML parsing with Python 3.</p>
<p><code>&gt;&gt;&gt; from html.parser import HTMLParser<br />
&gt;&gt;&gt; parss=HTMLParser()<br />
&gt;&gt;&gt; parss.feed('&lt;a href="http://m-eken.com"&gt;link&lt;/a&gt;')<br />
&gt;&gt;&gt; parss.get_starttag_text()<br />
'&lt;a href="http://m-eken.com"&gt;'<br />
&gt;&gt;&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://m-eken.com/2011/04/13/python-3-html-parse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Treeview in Python Tkinter</title>
		<link>http://m-eken.com/2010/03/02/treeview-in-python-tkinter/</link>
		<comments>http://m-eken.com/2010/03/02/treeview-in-python-tkinter/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 19:57:49 +0000</pubDate>
		<dc:creator>Eken</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[python 3]]></category>
		<category><![CDATA[tkinter]]></category>
		<category><![CDATA[treeview]]></category>

		<guid isPermaLink="false">http://m-eken.com/?p=640</guid>
		<description><![CDATA[import tkinter from tkinter import * from tkinter import ttk p=tkinter.Tk() t=ttk.Treeview(p) t["columns"]=("first","second") t.column("first",width=75,anchor="center" ) t.column("second",width=100) t.heading("first",text="first column") t.heading("second",text="second column") t.insert("",0,"dir1",text="directory 1") t.insert("dir1","end","dir 1",text="file 1 1",values=("file 1 A","file 1 B")) id=t.insert("","end","dir2",text="directory 2") t.insert("dir2","end",text="dir 2",values=("file 2 A","file 2 B")) t.insert(id,"end",text="dir 3",values=("val 1 ","val 2")) t.insert("",0,text="first line",values=("first line 1","first line 2")) t.tag_configure("ttk") t.pack(side=BOTTOM,fill=X) p.mainloop()]]></description>
			<content:encoded><![CDATA[<p><code>import tkinter<br />
from tkinter import *<br />
from tkinter import ttk<br />
p=tkinter.Tk()<br />
t=ttk.Treeview(p)<br />
t["columns"]=("first","second")<br />
t.column("first",width=75,anchor="center" )<br />
t.column("second",width=100)<br />
t.heading("first",text="first column")<br />
t.heading("second",text="second column")<br />
t.insert("",0,"dir1",text="directory 1")<br />
t.insert("dir1","end","dir 1",text="file 1 1",values=("file 1 A","file 1 B"))<br />
id=t.insert("","end","dir2",text="directory 2")<br />
t.insert("dir2","end",text="dir 2",values=("file 2 A","file 2 B"))<br />
t.insert(id,"end",text="dir 3",values=("val 1 ","val 2"))<br />
t.insert("",0,text="first line",values=("first line 1","first line 2"))<br />
t.tag_configure("ttk")<br />
t.pack(side=BOTTOM,fill=X)<br />
p.mainloop()<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://m-eken.com/2010/03/02/treeview-in-python-tkinter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>
		<item>
		<title>Python 3 Google Search Sample</title>
		<link>http://m-eken.com/2010/02/03/python-3-google-search-sample/</link>
		<comments>http://m-eken.com/2010/02/03/python-3-google-search-sample/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 13:20:39 +0000</pubDate>
		<dc:creator>Eken</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google search]]></category>
		<category><![CDATA[python 3]]></category>
		<category><![CDATA[urllib]]></category>

		<guid isPermaLink="false">http://m-eken.com/?p=620</guid>
		<description><![CDATA[Sample Google Search Python code import urllib.request,urllib.parse,urllib.error print("Google Searcher --- www.m-eken.com v.P5012") while input("s: Search. q: Quit #: ")=="s": GWord=input("#: ") url="http://www.google.com/search?hl=en&#38;q="+"+".join(GWord.split()) print(GWord+"\nsearching... ") 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") print( urllib.request.urlopen(req).read())]]></description>
			<content:encoded><![CDATA[<p>Sample Google Search Python code<br />
<code>import urllib.request,urllib.parse,urllib.error<br />
print("Google Searcher --- www.m-eken.com v.P5012")<br />
while input("s: Search. q: Quit #: ")=="s":<br />
GWord=input("#: ")<br />
url="http://www.google.com/search?hl=en&amp;q="+"+".join(GWord.split())<br />
print(GWord+"\nsearching... ")<br />
req=urllib.request.Request(url)<br />
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")<br />
print( urllib.request.urlopen(req).read())<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://m-eken.com/2010/02/03/python-3-google-search-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

