<?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>spechal.com &#187; Button</title>
	<atom:link href="http://spechal.com/tag/button/feed/" rel="self" type="application/rss+xml" />
	<link>http://spechal.com</link>
	<description>[spesh-uhl]</description>
	<lastBuildDate>Thu, 21 Jan 2010 11:50:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Python Button Command Parameter</title>
		<link>http://spechal.com/2009/12/02/python-button-command-parameter/</link>
		<comments>http://spechal.com/2009/12/02/python-button-command-parameter/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 10:05:15 +0000</pubDate>
		<dc:creator>Spechal</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Button]]></category>
		<category><![CDATA[Tkinter]]></category>

		<guid isPermaLink="false">http://spechal.com/?p=100</guid>
		<description><![CDATA[Here is a crude example of how to pass a parameter to the command of your Tkinter Button.

import Tkinter

def command(text):
    ButtonText.set(text)

root = Tkinter.Tk()

ButtonText = Tkinter.StringVar()
ButtonText.set("Do Callback")
Tkinter.Button(root, textvariable=ButtonText, command=lambda x="Hello World!": command(x)).pack()

root.mainloop()

]]></description>
			<content:encoded><![CDATA[<p>Here is a crude example of how to pass a parameter to the command of your Tkinter Button.</p>
<pre class="python" name="code">
import Tkinter

def command(text):
    ButtonText.set(text)

root = Tkinter.Tk()

ButtonText = Tkinter.StringVar()
ButtonText.set("Do Callback")
Tkinter.Button(root, textvariable=ButtonText, command=lambda x="Hello World!": command(x)).pack()

root.mainloop()
</pre>
]]></content:encoded>
			<wfw:commentRss>http://spechal.com/2009/12/02/python-button-command-parameter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
