<?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>Query7 &#187; php-gtk</title>
	<atom:link href="http://query7.com/category/php-gtk/feed" rel="self" type="application/rss+xml" />
	<link>http://query7.com</link>
	<description>PHP, Javascript, Python and Web Development</description>
	<lastBuildDate>Sat, 25 Jun 2011 21:29:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Learning PHP-GTK2</title>
		<link>http://query7.com/learning-php-gtk2</link>
		<comments>http://query7.com/learning-php-gtk2#comments</comments>
		<pubDate>Tue, 29 Jul 2008 17:13:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php-gtk]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=90</guid>
		<description><![CDATA[<p>As PHP-GTK2 is fairly new on the scene, there aren&#8217;t many resources for learning it. Those that are, are scattered throughout the web. Ive compiled a list below, hopefully they can help you develop PHP-GTK2 applications.</p>
<ul>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/sample-codes/">kksou &#8211; Sample Codes</a>, Hundreds of code examples with explanations.</li>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/blog/">kksou &#8211; Blog</a>, Some nice advanced info, updated frequently.</li>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/Forum/">kksou &#8211; Forums</a>, Can ask for help on your codes.</li>
<li><a rel="nofollow" href="http://www.gnope.org/">Gnope</a>, Installation of PHP-GTK2.</li>
<li><a rel="nofollow" href="http://cweiske.de/phpgtk.htm">cweiske</a>, Some PHP-GTK1 resources, you may/may not find it useful for PHP-GTK2 development.</li>
<li><a rel="nofollow" href="http://gtk.php.net/">gtk.php.net</a>, Official PHP-GTK2 homepage, numerous links, source code.</li>
<li><a rel="nofollow" href="http://gtk.php.net/docs.php">gtk.php.net docs</a>, Official PHP-GTK2 documentation.</li>
<li><a rel="nofollow" href="http://gtk.php.net/faq.php">gtk.php.net FAQ</a>, Frequently Asked Questions.</li>
<li><a rel="nofollow" href="http://gtk.php.net/resources.php">gtk.php.net Resources</a>, PHP-GTK2 mailing list, more resources.</li>
<li><a rel="nofollow" href="http://php-gtk.eu/">php-gtk.eu</a>, Great support forum, samples,news.</li>
<li><a rel="nofollow" href="http://phpgtk.activeventure.com/">activenture</a>, Docs, Refs, Tutorials. Very good.</li>
<li><a rel="nofollow" href="http://php-gtk.eu/apps">php-gtk.eu apps</a>, Largest list (that i could find) of PHP-GTK2 apps.</li>
</ul>
]]></description>
			<content:encoded><![CDATA[<p>As PHP-GTK2 is fairly new on the scene, there aren&#8217;t many resources for learning it. Those that are, are scattered throughout the web. Ive compiled a list below, hopefully they can help you develop PHP-GTK2 applications.</p>
<ul>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/sample-codes/">kksou &#8211; Sample Codes</a>, Hundreds of code examples with explanations.</li>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/blog/">kksou &#8211; Blog</a>, Some nice advanced info, updated frequently.</li>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/Forum/">kksou &#8211; Forums</a>, Can ask for help on your codes.</li>
<li><a rel="nofollow" href="http://www.gnope.org/">Gnope</a>, Installation of PHP-GTK2.</li>
<li><a rel="nofollow" href="http://cweiske.de/phpgtk.htm">cweiske</a>, Some PHP-GTK1 resources, you may/may not find it useful for PHP-GTK2 development.</li>
<li><a rel="nofollow" href="http://gtk.php.net/">gtk.php.net</a>, Official PHP-GTK2 homepage, numerous links, source code.</li>
<li><a rel="nofollow" href="http://gtk.php.net/docs.php">gtk.php.net docs</a>, Official PHP-GTK2 documentation.</li>
<li><a rel="nofollow" href="http://gtk.php.net/faq.php">gtk.php.net FAQ</a>, Frequently Asked Questions.</li>
<li><a rel="nofollow" href="http://gtk.php.net/resources.php">gtk.php.net Resources</a>, PHP-GTK2 mailing list, more resources.</li>
<li><a rel="nofollow" href="http://php-gtk.eu/">php-gtk.eu</a>, Great support forum, samples,news.</li>
<li><a rel="nofollow" href="http://phpgtk.activeventure.com/">activenture</a>, Docs, Refs, Tutorials. Very good.</li>
<li><a rel="nofollow" href="http://php-gtk.eu/apps">php-gtk.eu apps</a>, Largest list (that i could find) of PHP-GTK2 apps.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://query7.com/learning-php-gtk2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP-GTK 2</title>
		<link>http://query7.com/php-gtk-2</link>
		<comments>http://query7.com/php-gtk-2#comments</comments>
		<pubDate>Tue, 29 Apr 2008 15:29:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php-gtk]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=40</guid>
		<description><![CDATA[<p>Im a big Fan of PHP and one day i wanted to make a desktop application that could pull down posts and private messages from one of my forums. I didn&#8217;t want to learn a whole new language, just code the small application so i dismissed C, and looked at Python. I saw there was PyGTK, saw i wondered if there were PHP-GTK, which indeed there is.</p>
<p>I bought Scott Mattock&#8217;s PHP-GTK 2 book (Only to learn later that it was based on one of the early alphas) and dove straight in. Installation wasn&#8217;t hard, and i could get started straight away. I learned the hello world example first, and here it is..</p>
<pre lang="php">]]></description>
			<content:encoded><![CDATA[<p>Im a big Fan of PHP and one day i wanted to make a desktop application that could pull down posts and private messages from one of my forums. I didn&#8217;t want to learn a whole new language, just code the small application so i dismissed C, and looked at Python. I saw there was PyGTK, saw i wondered if there were PHP-GTK, which indeed there is.</p>
<p>I bought Scott Mattock&#8217;s PHP-GTK 2 book (Only to learn later that it was based on one of the early alphas) and dove straight in. Installation wasn&#8217;t hard, and i could get started straight away. I learned the hello world example first, and here it is..</p>
<pre lang="php"><?php

$wnd = new GtkWindow();
$wnd->set_title('Hello world');
$wnd->connect_simple('destroy', array('gtk', 'main_quit'));

$lblHello = new GtkLabel("Just wanted to say\r\n'Hello world!'");
$wnd->add($lblHello);

$wnd->show_all();
Gtk::main();
?></pre>
<p>As you can see, the syntax is OOP. If you&#8217;ve coded GTK, or PyGTK before things will look very similar. We start off by declaring a new <em>GtkWindow() </em> and assign it to the class/variable <em>$wnd</em>. We then set a title using <em>set_title</em>. The next line makes sure the window shuts correctly (destroys) it when you close the window, it will also stop the gtk main loop. Then we declare a new <em>GtkLabel</em> and give it some text, and then add it to the window, again fairly self explanitory. We then tell the window to show and declare the Gtk Main loop (which keeps the window open).</p>
<p>Finished Product:<br />
<a href="http://www.query7.com/wp-content/uploads/2008/04/phpgtkhelloworld.jpg"><img class="alignnone size-thumbnail wp-image-42" title="phpgtkhelloworld" src="http://www.query7.com/wp-content/uploads/2008/04/phpgtkhelloworld-150x150.jpg" alt="" width="150" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://query7.com/php-gtk-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

