<?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>The Viamentis Blog &#187; shoes</title>
	<atom:link href="http://blog.viamentis.com/articles/tag/shoes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.viamentis.com</link>
	<description>Curious About Everything</description>
	<lastBuildDate>Mon, 12 Jul 2010 11:16:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Shoes &#8211; a ruby GUI toolkit</title>
		<link>http://blog.viamentis.com/articles/2008/04/04/shoes-a-ruby-gui-toolkit/</link>
		<comments>http://blog.viamentis.com/articles/2008/04/04/shoes-a-ruby-gui-toolkit/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 10:25:59 +0000</pubDate>
		<dc:creator>divya</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[shoes]]></category>

		<guid isPermaLink="false">http://blog.viamentis.com/articles/2008/04/04/shoes-a-ruby-gui-toolkit/</guid>
		<description><![CDATA[Ruby is not only showing its power in Rails but also applications like &#8220;shoes&#8221; ,&#8221;shoes&#8221; is graphics and windowing toolkit. It will run on all platforms like Windows, Mac OS X and Linux , which help you to build desktop applications easily.Its creating GUI components some what similar to web applications.shoes library making our task [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby is not only showing its power in Rails but also applications like &#8220;<strong>shoes</strong>&#8221; ,&#8221;shoes&#8221; is graphics and windowing toolkit. It will run on all platforms like Windows, Mac OS X and Linux , which help you to build desktop applications easily.Its creating GUI components some what similar to web applications.shoes library making our task easier by providing lots of methods to build a desktop item.Ruby <strong>Shoes</strong> is  written in C and uses Ruby native extensions to allow interaction with Ruby code.<br />
First of all you need to install ruby &#8220;shoes&#8221; ,available here <a href="http://code.whytheluckystiff.net/shoes/wiki/DownloadShoes">download </a></p>
<p>1.Download source</p>
<p>2.Extract(unzip)</p>
<p>3.Install</p>
<p>Now run</p>
<p><code>$ shoes</code></p>
<p>Which will give take you to a graphical mode there you can choose your ruby file for shoes.Or run your shoes file by</p>
<p><code>$ shoes &lt;filename.rb&gt;</code></p>
<p>Here is  examples to show the simplicity and elegance of ruby shoes.Start with a small ones</p>
<p>Example for a button click<br />
<code>Shoes.app {<br />
button("Hello") { alert("You have clicked on hello") }<br />
}</code><br />
example for drop down box<br />
<code>shape = nil<br />
Shoes.app do<br />
shape = list_box :items =&gt; ["Square", "Oval", "Rectangle"]<br />
button "Report" do<br />
Shoes.p [shape.text]<br />
end<br />
end</code></p>
<p>You can see all the methods available for shoes &#8220;<a href="http://code.whytheluckystiff.net/entirety/">CLICK ME</a>&#8221; or type on command line<br />
<code>$ shoes --manual - you can see a helper.</code></p>
<p>Ideal example to see the power of shoes is given below , in those few lines its doing a big job !!<br />
<code>Shoes.app :width =&gt; 500, :height =&gt; 100, :margin =&gt; 10 do<br />
def answer(v)<br />
@answer.replace v.inspect<br />
end<br />
button "Ask" do<br />
answer ask("Enter your name")<br />
end<br />
button "Confirm" do<br />
answer confirm("Like to proceed??")<br />
end<br />
button "Open File" do<br />
answer ask_open_file<br />
end<br />
button "Save File" do<br />
answer ask_save_file<br />
end<br />
button "Select Your Color" do<br />
answer ask_color("Select yours")<br />
end<br />
@answer = para "Answers appear here"<br />
end</code></p>
<div id="pfButton"><a href="http://blog.viamentis.com/articles/2008/04/04/shoes-a-ruby-gui-toolkit/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.viamentis.com/articles/2008/04/04/shoes-a-ruby-gui-toolkit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
