<?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>PHP Architect blog &#187; glade</title>
	<atom:link href="http://www.php-architect.com/blog/tag/glade/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-architect.com/blog</link>
	<description>me, myself, and my code</description>
	<lastBuildDate>Wed, 14 Sep 2011 12:50:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Installing Python &amp; PyGTK on Mac OsX</title>
		<link>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-python-pygtk-on-mac-osx</link>
		<comments>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 10:16:23 +0000</pubDate>
		<dc:creator>aibrahim</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[glade]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[pygtk]]></category>
		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=157</guid>
		<description><![CDATA[<a href="http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/" title="Installing Python &amp; PyGTK on Mac OsX"></a>Recently i have been asked to develop an application that will work on Linux, and Mac os, so i started developing it on my Ubuntu, i chosed Python as the programming language and PyGTK as the GUI for it. The &#8230;<p class="read-more"><a href="http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/" title="Installing Python &amp; PyGTK on Mac OsX"></a><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Recently i have been asked to develop an application that will work on Linux, and Mac os, so i started developing it on my Ubuntu, i chosed Python as the programming language and PyGTK as the GUI for it.</p>
<p>The application worked fine on my Ubuntu, but when i moved it to Mac OSx (Leopard), i had a problem importing the PyGTK module and the program GUI didn&#8217;t run. so i tried to install PyGTK from sources with all its dependencies, but after spending a day doing so i ended up with many errors in compiling the dependencies and finding them.</p>
<p>after some search i found out that i can do this using MacPorts.</p>
<p>so here is the steps i followed :</p>
<p>- Install X11 <a title="Installing X11 on Mac OSx Leopard" href="http://guide.macports.org/#installing.x11" target="_blank">http://guide.macports.org/#installing.x11</a></p>
<p>- Install Xcode tools <a title="Installing XCode tools on Mac OSx Leopard" href="http://guide.macports.org/#installing.xcode" target="_blank">http://guide.macports.org/#installing.xcode</a></p>
<p>- Install MacPorts <a title="Installing MacPorts on Mac OSx Leopard" href="http://guide.macports.org/#installing.macports" target="_blank">http://guide.macports.org/#installing.macports</a></p>
<p>- Make sure the paths are configured in your shell profile <a title="Installing MacPorts on Mac OSx Leopard" href="http://guide.macports.org/#installing.shell" target="_blank">http://guide.macports.org/#installing.shell</a></p>
<p>- Restart your shell, and follow the next commands :</p>
<p>1- Install Python</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python25</pre></div></div>
<p>2- Install Python select</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python_select</pre></div></div>
<p>3- Activate our installed python version</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> python_select python25</pre></div></div>
<p>4- Install pygtk</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> py25-gtk</pre></div></div>
<p>5- Install some gnome themes and engines</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gnome-themes
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-nodoka-engine
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-smooth-engine
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-aurora
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-clearlooks
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-extra
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-industrial
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-murrine</pre></div></div>
<p>6- Install theme switch</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk-theme-switch</pre></div></div>
<p>7- Select which theme to be used by your applications by running the theme switch</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">switch2</pre></div></div>
<p>Now you can have the applications you develop using python and pygtk running smoothly on mac os leopard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

