<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>CoderPy &#187; python</title>
	<atom:link href="http://coderpy.wordpress.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://coderpy.wordpress.com</link>
	<description>La mia vita voglio scriverla in binario</description>
	<lastBuildDate>Fri, 06 Jun 2008 21:39:35 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='coderpy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a2ab825e842d0670e32032e74edc34e7?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>CoderPy &#187; python</title>
		<link>http://coderpy.wordpress.com</link>
	</image>
			<item>
		<title>[PyS60] Set module</title>
		<link>http://coderpy.wordpress.com/2008/06/06/pys60-set-module/</link>
		<comments>http://coderpy.wordpress.com/2008/06/06/pys60-set-module/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 21:39:35 +0000</pubDate>
		<dc:creator>akus</dc:creator>
				<category><![CDATA[pys60]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[set]]></category>

		<guid isPermaLink="false">http://coderpy.wordpress.com/?p=14</guid>
		<description><![CDATA[Non essendo presente per python s60 i set cioè una struttura dati che tratta gli insiemi con le sue operazioni,ho pensato di scrivere questo modulo che è una sorta di porting dei set utilizzabili su python sul pc.
Per scaricare il modulo clicca qui
Spero di avere fatto cosa gradita!  
      [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coderpy.wordpress.com&blog=3498874&post=14&subd=coderpy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Non essendo presente per python s60 i <strong>set </strong>cioè una struttura dati che tratta gli insiemi con le sue operazioni,ho pensato di scrivere questo modulo che è una sorta di porting dei set utilizzabili su python sul pc.</p>
<p>Per scaricare il modulo <a href="http://www.mediafire.com/?vxtt3swbhzm">clicca qui</a></p>
<p>Spero di avere fatto cosa gradita! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/coderpy.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/coderpy.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coderpy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coderpy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coderpy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coderpy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coderpy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coderpy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coderpy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coderpy.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coderpy.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coderpy.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coderpy.wordpress.com&blog=3498874&post=14&subd=coderpy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://coderpy.wordpress.com/2008/06/06/pys60-set-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8800831bb4d93aef7664ab100819089?s=96&#38;d=identicon" medium="image">
			<media:title type="html">akus</media:title>
		</media:content>
	</item>
		<item>
		<title>Il telefono ti legge l&#8217;orario</title>
		<link>http://coderpy.wordpress.com/2008/05/08/il-telefono-ti-legge-lorario/</link>
		<comments>http://coderpy.wordpress.com/2008/05/08/il-telefono-ti-legge-lorario/#comments</comments>
		<pubDate>Thu, 08 May 2008 08:16:29 +0000</pubDate>
		<dc:creator>akus</dc:creator>
				<category><![CDATA[pys60]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ora]]></category>
		<category><![CDATA[orario]]></category>
		<category><![CDATA[text to speech]]></category>

		<guid isPermaLink="false">http://coderpy.wordpress.com/?p=13</guid>
		<description><![CDATA[
Nei telefoni Symbian di seconda edizione (serie N) è possibile tramite il modulo audio contenuto in python utilizzare il text-to-speech,ovvero la sintesi vocale,voi scrivete una frase e il telefono la &#8220;legge a voce alta&#8221; 
Quindi per sfruttare questo modulo ho pensato di scrivere un&#8217;applicazione che legge a voce alta l&#8217;ora corrente  

import appuifw,e32,time
import audio

def [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coderpy.wordpress.com&blog=3498874&post=13&subd=coderpy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://www.emofaces.com/en/smilies/m/mobile-phone-smile.gif" alt="" width="83" height="177" /></p>
<p>Nei telefoni Symbian di seconda edizione (serie N) è possibile tramite il modulo <strong>audio</strong> contenuto in python utilizzare il text-to-speech,ovvero la sintesi vocale,voi scrivete una frase e il telefono la &#8220;legge a voce alta&#8221; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Quindi per sfruttare questo modulo ho pensato di scrivere un&#8217;applicazione che legge a voce alta l&#8217;ora corrente <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<pre class="brush: python;">
import appuifw,e32,time
import audio

def Main():
  frase=&quot;&quot;
  orario=time.ctime()
  orario=orario.split( &quot; &quot; )
  orario=orario[3]
  orario=orario.split( &quot;:&quot; )
  ore=int(orario[0])
  minuti=int(orario[1])
  o=ora(ore)
  m=minut(minuti)
  frase=&quot;Sono le ore &quot; + o + &quot; ee &quot; + m +&quot; minuti&quot;
  audio.say(frase)
  time.sleep(1)
  appuifw.app.set_exit()
  Lock.signal()

def ora(ore):
  if ore==0:
    ore=&quot;zero zero&quot;
  elif ore==1:
    ore=&quot;l'una&quot;
  elif ore==2:
    ore=&quot;due&quot;
  elif ore==3:
    ore=&quot;tre&quot;
  elif ore==4:
    ore=&quot;quattro&quot;
  elif ore==5:
    ore=&quot;cinque&quot;
  elif ore==6:
    ore=&quot;sei&quot;
  elif ore==7:
    ore=&quot;sette&quot;
  elif ore==8:
    ore=&quot;otto&quot;
  elif ore==9:
    ore=&quot;nove&quot;
  elif ore==10:
    ore=&quot;dieci&quot;
  elif ore==11:
    ore=&quot;undici&quot;
  elif ore==12:
    ore=&quot;dodici&quot;
  elif ore==13:
    ore=&quot;tredici&quot;
  elif ore==14:
    ore=&quot;quattordici&quot;
  elif ore==15:
    ore=&quot;quindici&quot;
  elif ore==16:
    ore=&quot;sedici&quot;
  elif ore==17:
    ore=&quot;diciessette&quot;
  elif ore==18:
    ore=&quot;diciotto&quot;
  elif ore==19:
    ore=&quot;diciennove&quot;
  elif ore==20:
    ore=&quot;venti&quot;
  elif ore==21:
    ore=&quot;vntuno&quot;
  elif ore==22:
    ore=&quot;ventidue&quot;
  elif ore==23:
    ore=&quot;ventitre&quot;
  ore=str(ore)
  return ore

def minut(minuti):
  if minuti==0:
    minuti=&quot;in punto&quot;
  elif minuti==1:
    minuti=&quot;un&quot;
  elif minuti==2:
    minuti=&quot;due&quot;
  elif minuti==3:
    minuti=&quot;tre&quot;
  elif minuti==4:
    minuti=&quot;quattro&quot;
  elif minuti==5:
    minuti=&quot;cinque&quot;
  elif minuti==6:
    minuti=&quot;sei&quot;
  elif minuti==7:
    minuti=&quot;sette&quot;
  elif minuti==8:
    minuti=&quot;otto&quot;
  elif minuti==9:
    minuti=&quot;nove&quot;
  elif minuti==10:
    minuti=&quot;dieci&quot;
  elif minuti==11:
    minuti=&quot;undici&quot;
  elif minuti==12:
    minuti=&quot;dodici&quot;
  elif minuti==13:
    minuti=&quot;tredici&quot;
  elif minuti==14:
    minuti=&quot;quattordici&quot;
  elif minuti==15:
    minuti=&quot;quindici&quot;
  elif minuti==16:
    minuti=&quot;sedici&quot;
  elif minuti==17:
    minuti=&quot;diciessette&quot;
  elif minuti==18:
    minuti=&quot;diciotto&quot;
  elif minuti==19:
    minuti=&quot;diciennove&quot;
  elif minuti==20:
    minuti=&quot;venti&quot;
  elif minuti==21:
    minuti=&quot;ventuno&quot;
  elif minuti==22:
    minuti=&quot;ventidue&quot;
  elif minuti==23:
    minuti=&quot;ventitre&quot;
  elif minuti==24:
    minuti=&quot;ventiquattro&quot;
  elif minuti==25:
    minuti=&quot;venticinque&quot;
  elif minuti==26:
    minuti=&quot;ventisei&quot;
  elif minuti==27:
    minuti=&quot;ventisette&quot;
  elif minuti==28:
    minuti=&quot;ventotto&quot;
  elif minuti==29:
    minuti=&quot;ventinove&quot;
  elif minuti==30:
    minuti=&quot;trenta&quot;
  elif minuti==31:
    minuti=&quot;trentuno&quot;
  elif minuti==32:
    minuti=&quot;trentadue&quot;
  elif minuti==33:
    minuti=&quot;trentatre&quot;
  elif minuti==34:
    minuti=&quot;trentaquattro&quot;
  elif minuti==35:
    minuti=&quot;trentacinque&quot;
  elif minuti==36:
    minuti=&quot;trentasei&quot;
  elif minuti==37:
    minuti=&quot;trentasette&quot;
  elif minuti==38:
    minuti=&quot;trentotto&quot;
  elif minuti==39:
    minuti=&quot;trentanove&quot;
  elif minuti==40:
    minuti=&quot;quaranta&quot;
  elif minuti==41:
    minuti=&quot;quarantuno&quot;
  elif minuti==42:
    minuti=&quot;quarantadue&quot;
  elif minuti==43:
    minuti=&quot;quarantatre&quot;
  elif minuti==44:
    minuti=&quot;quarantaquattro&quot;
  elif minuti==45:
    minuti=&quot;quarantacinque&quot;
  elif minuti==46:
    minuti=&quot;quarantasei&quot;
  elif minuti==47:
    minuti=&quot;quarantasette&quot;
  elif minuti==48:
    minuti=&quot;quarantotto&quot;
  elif minuti==49:
    minuti=&quot;quarantanove&quot;
  elif minuti==50:
    minuti=&quot;cinquanta&quot;
  elif minuti==51:
    minuti=&quot;cinquantuno&quot;
  elif minuti==52:
    minuti=&quot;cinquantadue&quot;
  elif minuti==53:
    minuti=&quot;cinquantatre&quot;
  elif minuti==54:
    minuti=&quot;cinquantaquattro&quot;
  elif minuti==55:
    minuti=&quot;cinquantacinque&quot;
  elif minuti==56:
    minuti=&quot;cinquantasei&quot;
  elif minuti==57:
    minuti=&quot;cinquantasette&quot;
  elif minuti==58:
    minuti=&quot;cinquantotto&quot;
  elif minuti==59:
    minuti=&quot;cinquantanove&quot;
  minuti=str(minuti)
  return minuti

#---Main---#
appuifw.app.title=u&quot;Ora Esatta&quot;
Lock=e32.Ao_lock()
Main()
Lock.wait()
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/coderpy.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/coderpy.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coderpy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coderpy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coderpy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coderpy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coderpy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coderpy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coderpy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coderpy.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coderpy.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coderpy.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coderpy.wordpress.com&blog=3498874&post=13&subd=coderpy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://coderpy.wordpress.com/2008/05/08/il-telefono-ti-legge-lorario/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8800831bb4d93aef7664ab100819089?s=96&#38;d=identicon" medium="image">
			<media:title type="html">akus</media:title>
		</media:content>

		<media:content url="http://www.emofaces.com/en/smilies/m/mobile-phone-smile.gif" medium="image" />
	</item>
		<item>
		<title>PyS60 1.4.3</title>
		<link>http://coderpy.wordpress.com/2008/04/29/pys60-143/</link>
		<comments>http://coderpy.wordpress.com/2008/04/29/pys60-143/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 13:36:15 +0000</pubDate>
		<dc:creator>akus</dc:creator>
				<category><![CDATA[pys60]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[s60]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://coderpy.wordpress.com/?p=11</guid>
		<description><![CDATA[
E&#8217; stata rilasciata la nuova versione di python per i serie 60,in questa nuova release sono stati fixati alcuni bugs relativi al GPS ed SMS.
Il release note è visibile qui.
Mentre il download a questo indirizzo.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coderpy.wordpress.com&blog=3498874&post=11&subd=coderpy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://lfdm.net/python-logo.png" alt="" width="150" height="51" /><br />
E&#8217; stata rilasciata la nuova versione di python per i serie 60,in questa nuova release sono stati fixati alcuni bugs relativi al GPS ed SMS.<br />
Il release note è visibile <a href="http://sourceforge.net/project/shownotes.php?release_id=595438">qui</a>.<br />
Mentre il download a <a href="http://sourceforge.net/project/showfiles.php?group_id=154155&amp;package_id=171153&amp;release_id=595438">questo indirizzo.</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/coderpy.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/coderpy.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coderpy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coderpy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coderpy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coderpy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coderpy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coderpy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coderpy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coderpy.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coderpy.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coderpy.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coderpy.wordpress.com&blog=3498874&post=11&subd=coderpy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://coderpy.wordpress.com/2008/04/29/pys60-143/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8800831bb4d93aef7664ab100819089?s=96&#38;d=identicon" medium="image">
			<media:title type="html">akus</media:title>
		</media:content>

		<media:content url="http://lfdm.net/python-logo.png" medium="image" />
	</item>
		<item>
		<title>Si inizia&#8230;</title>
		<link>http://coderpy.wordpress.com/2008/04/17/si-inizia/</link>
		<comments>http://coderpy.wordpress.com/2008/04/17/si-inizia/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 21:27:29 +0000</pubDate>
		<dc:creator>akus</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[pymedia]]></category>
		<category><![CDATA[wxpython]]></category>

		<guid isPermaLink="false">http://coderpy.wordpress.com/?p=6</guid>
		<description><![CDATA[Ciao a tutti eccomi col primo post di questa nuova avventura 
In questo spazio posterò ciò che andrò scoprendo nel mondo Linux,i codici dei miei programmi,e news in generale&#8230;insomma tutto quello che stimola la mia (e spero anche la vostra) curiosità&#8230;!!!
Iniziamo subito presentando una libreria per python che ci permette di lavorare sull&#8217;audio,la libreria in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coderpy.wordpress.com&blog=3498874&post=6&subd=coderpy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Ciao a tutti eccomi col primo post di questa nuova avventura <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
In questo spazio posterò ciò che andrò scoprendo nel mondo Linux,i codici dei miei programmi,e news in generale&#8230;insomma tutto quello che stimola la mia (e spero anche la vostra) curiosità&#8230;!!!<br />
Iniziamo subito presentando una libreria per python che ci permette di lavorare sull&#8217;audio,la libreria in questione si chiama <a href="http://pymedia.org/"><strong>PyMedia</strong></a>, se la dovete installare su un sistema Windows basta scaricare l&#8217;installer (.exe) ed installarlo come un semplice programma,mentre se come me siete su un sistema linux scaricate il <em>.tar.gz</em> e seguite le seguenti istruzioni per Ubuntu 7.10 :</p>
<p>-Installare prima le dipendenze:<br />
<em><strong>sudo apt-get install python-dev libogg-dev libvorbis-dev liblame-dev libfaad2-dev libasound2-dev python-pygame</strong></em></p>
<p>-Digitare sul terminale:<br />
<em><strong>python setup.py build</strong></em></p>
<p>-Infine installiamo pymedia:<br />
<em><strong>sudo python setup.py install</strong></em></p>
<p>Per verificare che tutto sia andato a buon fine aprite la shell interattiva di python (basta digitare &#8220;python&#8221; sul terminale) e scrivere:<em><strong>import pymedia</strong></em><br />
se non compare nessun errore significa che pymedia è stato installato correttamente..!!</p>
<p>Iniziamo presentando un primo programmino anche se con un&#8217;interfaccia ancora rudimentale,si tratta di un player audio creato con python utilizzando pymedia per la gestione dell&#8217;audio e le wxpython per l&#8217;interfaccia grafica <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<pre class="brush: python;">import wx
import pymedia

ID_APRI=wx.NewId()
ID_ESCI=wx.NewId()

class Main(wx.Frame):
    def __init__(self,parent,id,title):
        wx.Frame.__init__(self,parent,id,title,size=(250,120))
        self.BottonePlay=wx.Button(self,-1,'PLAY',pos=(00,35),size=(55,30))
        self.BottonePause=wx.Button(self,-1,'PAUSE',pos=(55,35),size=(55,30))
        self.BottoneStop=wx.Button(self,-1,'STOP',pos=(110,35),size=(55,30))
        #
        self.BottonePlay.Bind(wx.EVT_BUTTON,self.Play,self.BottonePlay)
        self.BottoneStop.Bind(wx.EVT_BUTTON,self.Stop,self.BottoneStop)
        self.BottonePause.Bind(wx.EVT_BUTTON,self.Pause,self.BottonePause)
        #
        menu=wx.Menu()
        menu.Append(ID_APRI,'Apri...' )
        menu.Append(ID_ESCI,'Esci' )
        #
        menuBar=wx.MenuBar()
        menuBar.Append(menu,'&amp;amp;File' )
        self.SetMenuBar(menuBar)
        wx.EVT_MENU(self,ID_APRI,self.Apri)
        wx.EVT_MENU(self,ID_ESCI,self.Esci)
        #
        self.Show(True)
        #
        self.StatutsPause=False #all'inizio e' impostato su False

        self.canzone=&quot;&quot;
        self.player=pymedia.Player()

    def Play(self,event):
        if (self.canzone!=''):
            if (self.player.isPlaying()==False):
                self.player=pymedia.Player()
                self.player.start()
                self.player.startPlayback(self.canzone)
        else:
            wx.MessageBox(&quot;Selezionare una canzone&quot;,&quot;Info&quot;, wx.OK | wx.ICON_INFORMATION)

    def Pause(self,event):
        try:
            if(self.player.isPlaying()==True)and(self.StatutsPause==False):
                self.player.pausePlayback()
                self.StatutsPause=True
            elif(self.StatutsPause==True):
                self.player.unpausePlayback()
                self.StatutsPause=False
        except AttributeError:
            pass

    def Stop(self,event):
        try:
            if (self.player.isPlaying()==True):
                self.player.stop()
                self.player.stopPlayback()
        except AttributeError:
            pass

    def Apri(self,event):
        path=wx.FileDialog(self, &quot;Carica...&quot;, &quot;&quot;, &quot;&quot;, &quot;*.mp3&quot;, wx.OPEN)
        if (path.ShowModal()==wx.ID_OK):
            self.canzone=path.GetPath()

    def Esci(self,event):
        self.Destroy()

#--Main--#
if (__name__=='__main__'):
    app=wx.PySimpleApp()
    frame=Main(None,-1,'Player' )
    frame.Show()
    app.MainLoop() </pre>
<p>Alla prossima&#8230;!!! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/coderpy.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/coderpy.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/coderpy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/coderpy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/coderpy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/coderpy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/coderpy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/coderpy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/coderpy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/coderpy.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/coderpy.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/coderpy.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=coderpy.wordpress.com&blog=3498874&post=6&subd=coderpy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://coderpy.wordpress.com/2008/04/17/si-inizia/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8800831bb4d93aef7664ab100819089?s=96&#38;d=identicon" medium="image">
			<media:title type="html">akus</media:title>
		</media:content>
	</item>
	</channel>
</rss>