SlideShare a Scribd company logo
1 of 19
Python para s60 1  Python  para S60 ( PyS60 )  2 Instalación de  PyS60  en el teléfono  3 Desarrollo de aplicaciones usando Microsoft Windows  4 Desarrollo de aplicaciones usando GNU/Linux  5 Ejemplos de prueba
Pagina principal 1.1  Python 1.2 Pys60 1.3 Características
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal
[object Object],[object Object],[object Object],Pagina principal Regresar Python
Pys60 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal Regresar
Características ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal Siguiente Pagina
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal Regresar
Configuracion y uso de una consola buetooth. ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal Regresar
Desarrollo de aplicaciones usando GNU/Linux ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal
Configuración y uso de una consola Bluetooth ,[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal Regresar
Ejecución de Aplicaciones utilizando la Consola Bluetooth ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Pagina principal Regresar
Hola Mundo !   <FONT SIZE=2>import appuifw  appuifw.note(u&quot;Hellow World!&quot;, &quot;info&quot;)  &quot;&quot;&quot; NOTA: Las cadenas de texto deben de ser definidas como unicode. u&quot;...&quot;  El mobil no puede desplegar los textos apropiadamente de otra manera. &quot;&quot;&quot;  </FONT> Pagina principal Regresar
Envío de SMS <FONT SIZE=2>&quot;&quot;&quot; Copyright (c) 2005 Jurgen Scheible this script lets you send an sms to 2 users at the same time.  &quot;&quot;&quot;  &quot;&quot;&quot; import the messaging module  &quot;&quot;“ import appuifw  import messaging  &quot;&quot;&quot; create text input field &quot;&quot;&quot;  data = appuifw.query(u&quot;Type your name:&quot;, &quot;text&quot;)  &quot;&quot;&quot; define the mobile numbers here&quot;&quot;&quot;  nbr1 = &quot;123456&quot;  nbr2 = &quot;234567&quot;  &quot;&quot;&quot; define the text that the sms shall contain &quot;&quot;“ txt = u&quot;Greetings from:&quot; +data  &quot;&quot;&quot; create a query with type: &quot;query&quot; -&gt; appuifw.query(label, type) by using an if statement one can check whether the user has pressed &quot;ok&quot; -&gt; True or &quot;cancel&quot; -&gt; False &quot;&quot;“ if appuifw.query(u&quot;Send message to your 2 friends&quot;,&quot;query&quot;) == True:  &quot;&quot;&quot; send out the sms; include the mobile number and the text to be sent &quot;&quot;“ messaging.sms_send(nbr1, txt) messaging.sms_send(nbr2, txt)  &quot;&quot;&quot; confirm with a pop-up note that the sms has been sent out &quot;&quot;&quot; appuifw.note(u&quot;Messages sent&quot;, &quot;info&quot;)  else: &quot;&quot;&quot; in case the user had pressed &quot;cancel&quot;, send a pop-up note that the messages have not been sent out &quot;&quot;&quot;  appuifw.note(u&quot;Well, your Messages are not sent then&quot;, &quot;info&quot;) </FONT> Pagina principal Regresar
Recepción de SMS <FONT SIZE=2>&quot;&quot;“ Copyright (c) 2006 Jurgen Scheible  This script waits for an incoming sms, reads its content and shows it inside a pop-up note  NOTE: PyS60 version 1.3.1 or higher is needed to run this script. &quot;&quot;&quot;  &quot;&quot;&quot; import the module inbox (that handles incoming sms things) &quot;&quot;&quot;  import inbox  import e32  &quot;&quot;&quot; create a function that does the content sms reading &quot;&quot;&quot;  def read_sms(id):  e32.ao_sleep(0.1)  &quot;&quot;&quot; create once more an instance of the inbox() class &quot;&quot;“ i=inbox.Inbox() &quot;&quot;&quot; read the content out of the message that has just arrived &quot;&quot;“ sms_text = i.content(id) &quot;&quot;&quot; display the content inside a pop-up note &quot;&quot;“ appuifw.note(u&quot;sms content: &quot; + sms_text , &quot;info“)  &quot;&quot;&quot; create an instance of the inbox() class &quot;&quot;&quot;  i=inbox.Inbox() print &quot;send now sms to this phone“ &quot;&quot;&quot; put the phone into waiting stage to wait for an incoming message &quot;&quot;“ i.bind(read_sms)  </FONT> Pagina principal Regresar
Uso de cámara fotográfica <FONT SIZE=2>import e32, camera, appuifw, key_codes  def finder_cb(im): canvas.blit(im) def take_picture(): camera.stop_finder() pic = camera.take_photo(size = (640,480))  w,h = canvas.size  canvas.blit(pic,target=(0, 0, w, 0.75 * w), scale = 1) pic.save('e:Imagespicture1.jpg')  def quit(): app_lock.signal()  canvas = appuifw.Canvas()  appuifw.app.body = canvas camera.start_finder(finder_cb) canvas.bind(key_codes.EKeySelect, take_picture) appuifw.app.title = u&quot;My Camera&quot;  appuifw.app.exit_key_handler = quit  app_lock = e32.Ao_lock() app_lock.wait() </FONT> Pagina principal Regresar
Uso de FTP <FONT SIZE=2> &quot;&quot;&quot; Copyright (c) 2006 Jurgen Scheible this script lets you upload a file to a URL using the FTP protocol NOTE: you need to install first the ftplib library to your phone before you can use ftp, because the Nokia Python for S60 package does not incude it by default. NOTE: You need to install the ftplib.py file on your phone as a python library (not a python script). The ftplib.py (comes originally with the desktop python version) &quot;&quot;“ &quot;&quot;&quot; in order to get this script work, you need to fill in: - your servername (your server must be capable of using FTP) - username and password - the correct folder where to store the file &quot;&quot;“ import appuifw from ftplib import FTP &quot;&quot;&quot; name of file to be uploaded (path on phones hard drive)&quot;&quot;“ picselection = &quot;c:/testimg.gif“ def fireupfile(): global picselection ftp = FTP('www.exampleserver.com') &quot;&quot;&quot; give  servername&quot;&quot;“ ftp.set_pasv('true') ftp.login('username','password') &quot;&quot;&quot; give login anonymous&quot;&quot;&quot;  &quot;&quot;&quot; give correct folder where to store the image &quot;&quot;&quot;  ftp.cwd('public_html/examplefolder')  F=open(picselection,'r')  &quot;&quot;&quot; give name of image to be stored as URL &quot;&quot;“ ftp.storbinary(&quot;STOR image.gif&quot;,F,1024)  ftp.quit()  F.close() if appuifw.query(u&quot;fire up image?&quot;,&quot;query&quot;) == True: fireupfile()  </FONT> Pagina principal Regresar
Envío de MMS <FONT SIZE=2>&quot;&quot;&quot; Copyright (c) 2007 Jurgen Scheible this script lets you send an mms to another phone including text and an image  &quot;&quot;&quot;  import appuifw import messaging &quot;&quot;&quot; create text input field &quot;&quot;“ data = appuifw.query(u&quot;Type your name:&quot;, &quot;text&quot;)  &quot;&quot;&quot; define the mobile number here where to send the MMS &quot;&quot;&quot;  nbr = &quot;123456&quot; &quot;&quot;&quot; change the mobile number here &quot;&quot;“ &quot;&quot;&quot; define the text that the sms shall contain &quot;&quot;“ txt = u&quot;Greetings from:&quot; +data &quot;&quot;&quot; image attachment: You must have an picture already available with the name picture1.jpg inside the folder called Images on your memory card. ('e:Imagespicture1.jpg') otherwise the script won't work. (use video or sound file instead of image) send out the mms; include the mobile number, the text and the attachement to be sent &quot;&quot;&quot;  messaging.mms_send(nbr, txt, attachment='e:Imagespicture1.jpg')  &quot;&quot;&quot; confirm with a pop-up note that the sms has been sent out &quot;&quot;“ appuifw.note(u&quot;MMS sent&quot;, &quot;info&quot;) </FONT> Pagina principal Regresar

More Related Content

What's hot (14)

1 curso-de-python-introducci-n-a-python
1 curso-de-python-introducci-n-a-python1 curso-de-python-introducci-n-a-python
1 curso-de-python-introducci-n-a-python
 
Manual Pascal
Manual PascalManual Pascal
Manual Pascal
 
Software
SoftwareSoftware
Software
 
Software
SoftwareSoftware
Software
 
Freepascal
FreepascalFreepascal
Freepascal
 
Introducción a Python
Introducción a Python Introducción a Python
Introducción a Python
 
Sublime text2
Sublime text2Sublime text2
Sublime text2
 
Desarrollo Software Entornos G N U Linux Una Final
Desarrollo  Software Entornos  G N U  Linux Una FinalDesarrollo  Software Entornos  G N U  Linux Una Final
Desarrollo Software Entornos G N U Linux Una Final
 
Presentacion Bryan Isaac Fuentes
Presentacion Bryan Isaac FuentesPresentacion Bryan Isaac Fuentes
Presentacion Bryan Isaac Fuentes
 
Aprendamos python
Aprendamos pythonAprendamos python
Aprendamos python
 
Python
PythonPython
Python
 
Pbpesp
PbpespPbpesp
Pbpesp
 
Taller de Instalación de Software
Taller de Instalación de SoftwareTaller de Instalación de Software
Taller de Instalación de Software
 
Instalación python
Instalación pythonInstalación python
Instalación python
 

Viewers also liked

FORMATO PLAN DE SEGUIMIENTO Y EVALUACIÓN - ETAPA PRODUCTIVA
FORMATO PLAN DE SEGUIMIENTO Y EVALUACIÓN -   ETAPA  PRODUCTIVAFORMATO PLAN DE SEGUIMIENTO Y EVALUACIÓN -   ETAPA  PRODUCTIVA
FORMATO PLAN DE SEGUIMIENTO Y EVALUACIÓN - ETAPA PRODUCTIVAjoseluissanchezceballos
 
презентация по теме
презентация по темепрезентация по теме
презентация по темеfreez123123
 
Каштакский бор
Каштакский борКаштакский бор
Каштакский борifranz74
 

Viewers also liked (6)

FORMATO PLAN DE SEGUIMIENTO Y EVALUACIÓN - ETAPA PRODUCTIVA
FORMATO PLAN DE SEGUIMIENTO Y EVALUACIÓN -   ETAPA  PRODUCTIVAFORMATO PLAN DE SEGUIMIENTO Y EVALUACIÓN -   ETAPA  PRODUCTIVA
FORMATO PLAN DE SEGUIMIENTO Y EVALUACIÓN - ETAPA PRODUCTIVA
 
eTwinning Valga Gümnaasiumi koolituse materjall
eTwinning Valga Gümnaasiumi koolituse materjalleTwinning Valga Gümnaasiumi koolituse materjall
eTwinning Valga Gümnaasiumi koolituse materjall
 
презентация по теме
презентация по темепрезентация по теме
презентация по теме
 
Hipermedia, Hipertexto Y Multimedia
Hipermedia, Hipertexto Y MultimediaHipermedia, Hipertexto Y Multimedia
Hipermedia, Hipertexto Y Multimedia
 
Jhonatan sistemas
Jhonatan sistemasJhonatan sistemas
Jhonatan sistemas
 
Каштакский бор
Каштакский борКаштакский бор
Каштакский бор
 

Similar to Python Para S60

1. Presentación e instalación de Python.pdf
1. Presentación e instalación de Python.pdf1. Presentación e instalación de Python.pdf
1. Presentación e instalación de Python.pdfJhonJairoMorenoDuart
 
Parallel python sistemas operativos avanzados
Parallel python sistemas operativos avanzadosParallel python sistemas operativos avanzados
Parallel python sistemas operativos avanzadosDaniel Muccela
 
Electonica de potencia, diodos de rectificacion
Electonica de potencia, diodos de rectificacionElectonica de potencia, diodos de rectificacion
Electonica de potencia, diodos de rectificacionBEYMARCALLECONDE
 
Parallel Python sistemas operativos avanzados
Parallel Python sistemas operativos avanzadosParallel Python sistemas operativos avanzados
Parallel Python sistemas operativos avanzadosDaniel Muccela
 
Presentacion Python S60
Presentacion Python S60Presentacion Python S60
Presentacion Python S60pythons60
 
PPT python S60
PPT python S60PPT python S60
PPT python S60pythons60
 
01 - Introducción al lenguaje de programación Python 3
01 - Introducción al lenguaje de programación Python 301 - Introducción al lenguaje de programación Python 3
01 - Introducción al lenguaje de programación Python 3Diego Andrés Alvarez Marín
 
01 T1 2021 Sistemas Embebidos.pptx
01 T1 2021 Sistemas Embebidos.pptx01 T1 2021 Sistemas Embebidos.pptx
01 T1 2021 Sistemas Embebidos.pptxDyllanBastidas
 
OpenMP - Configuración de IDE y ejecución de código paralelo
OpenMP - Configuración de IDE y ejecución de código paraleloOpenMP - Configuración de IDE y ejecución de código paralelo
OpenMP - Configuración de IDE y ejecución de código paraleloadelsolar
 
Presentación software libre
Presentación   software librePresentación   software libre
Presentación software libreGabriel Pérez
 
TIPOS DE SOFTWARE
TIPOS DE SOFTWARE TIPOS DE SOFTWARE
TIPOS DE SOFTWARE mavey17
 
Herramientas de programación para desarrolladores
Herramientas de programación para desarrolladoresHerramientas de programación para desarrolladores
Herramientas de programación para desarrolladoresBBVA API Market
 
python-para-todos.pdf
python-para-todos.pdfpython-para-todos.pdf
python-para-todos.pdfJaviMartin21
 
Python para todos
Python para todosPython para todos
Python para todosErik Gur
 

Similar to Python Para S60 (20)

1. Presentación e instalación de Python.pdf
1. Presentación e instalación de Python.pdf1. Presentación e instalación de Python.pdf
1. Presentación e instalación de Python.pdf
 
Python S60
Python S60Python S60
Python S60
 
Parallel python sistemas operativos avanzados
Parallel python sistemas operativos avanzadosParallel python sistemas operativos avanzados
Parallel python sistemas operativos avanzados
 
Electonica de potencia, diodos de rectificacion
Electonica de potencia, diodos de rectificacionElectonica de potencia, diodos de rectificacion
Electonica de potencia, diodos de rectificacion
 
Parallel Python sistemas operativos avanzados
Parallel Python sistemas operativos avanzadosParallel Python sistemas operativos avanzados
Parallel Python sistemas operativos avanzados
 
Introducción a python
Introducción a pythonIntroducción a python
Introducción a python
 
Presentacion Python S60
Presentacion Python S60Presentacion Python S60
Presentacion Python S60
 
PPT python S60
PPT python S60PPT python S60
PPT python S60
 
Tipos de Software
Tipos de SoftwareTipos de Software
Tipos de Software
 
01 - Introducción al lenguaje de programación Python 3
01 - Introducción al lenguaje de programación Python 301 - Introducción al lenguaje de programación Python 3
01 - Introducción al lenguaje de programación Python 3
 
PYTHON.pptx
PYTHON.pptxPYTHON.pptx
PYTHON.pptx
 
01 T1 2021 Sistemas Embebidos.pptx
01 T1 2021 Sistemas Embebidos.pptx01 T1 2021 Sistemas Embebidos.pptx
01 T1 2021 Sistemas Embebidos.pptx
 
OpenMP - Configuración de IDE y ejecución de código paralelo
OpenMP - Configuración de IDE y ejecución de código paraleloOpenMP - Configuración de IDE y ejecución de código paralelo
OpenMP - Configuración de IDE y ejecución de código paralelo
 
Presentación software libre
Presentación   software librePresentación   software libre
Presentación software libre
 
TIPOS DE SOFTWARE
TIPOS DE SOFTWARE TIPOS DE SOFTWARE
TIPOS DE SOFTWARE
 
Android
AndroidAndroid
Android
 
Herramientas de programación para desarrolladores
Herramientas de programación para desarrolladoresHerramientas de programación para desarrolladores
Herramientas de programación para desarrolladores
 
python-para-todos.pdf
python-para-todos.pdfpython-para-todos.pdf
python-para-todos.pdf
 
Python para todos
Python para todosPython para todos
Python para todos
 
Python para Todos
Python para TodosPython para Todos
Python para Todos
 

Recently uploaded

CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE  DE TECNOLOGIA E INFORMATICA PRIMARIACLASE  DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIAWilbisVega
 
Presentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxPresentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxLolaBunny11
 
9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudianteAndreaHuertas24
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveFagnerLisboa3
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan JosephBRAYANJOSEPHPEREZGOM
 
Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx241521559
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)GDGSucre
 
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...silviayucra2
 
Desarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfDesarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfJulian Lamprea
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfsoporteupcology
 
Trabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíaTrabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíassuserf18419
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricKeyla Dolores Méndez
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITMaricarmen Sánchez Ruiz
 

Recently uploaded (13)

CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE  DE TECNOLOGIA E INFORMATICA PRIMARIACLASE  DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
 
Presentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxPresentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptx
 
9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial Uninove
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Joseph
 
Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)
 
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
 
Desarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfDesarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdf
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdf
 
Trabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíaTrabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnología
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNIT
 

Python Para S60

  • 1. Python para s60 1 Python para S60 ( PyS60 ) 2 Instalación de PyS60 en el teléfono 3 Desarrollo de aplicaciones usando Microsoft Windows 4 Desarrollo de aplicaciones usando GNU/Linux 5 Ejemplos de prueba
  • 2. Pagina principal 1.1 Python 1.2 Pys60 1.3 Características
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. Hola Mundo ! <FONT SIZE=2>import appuifw appuifw.note(u&quot;Hellow World!&quot;, &quot;info&quot;) &quot;&quot;&quot; NOTA: Las cadenas de texto deben de ser definidas como unicode. u&quot;...&quot; El mobil no puede desplegar los textos apropiadamente de otra manera. &quot;&quot;&quot; </FONT> Pagina principal Regresar
  • 15. Envío de SMS <FONT SIZE=2>&quot;&quot;&quot; Copyright (c) 2005 Jurgen Scheible this script lets you send an sms to 2 users at the same time. &quot;&quot;&quot; &quot;&quot;&quot; import the messaging module &quot;&quot;“ import appuifw import messaging &quot;&quot;&quot; create text input field &quot;&quot;&quot; data = appuifw.query(u&quot;Type your name:&quot;, &quot;text&quot;) &quot;&quot;&quot; define the mobile numbers here&quot;&quot;&quot; nbr1 = &quot;123456&quot; nbr2 = &quot;234567&quot; &quot;&quot;&quot; define the text that the sms shall contain &quot;&quot;“ txt = u&quot;Greetings from:&quot; +data &quot;&quot;&quot; create a query with type: &quot;query&quot; -&gt; appuifw.query(label, type) by using an if statement one can check whether the user has pressed &quot;ok&quot; -&gt; True or &quot;cancel&quot; -&gt; False &quot;&quot;“ if appuifw.query(u&quot;Send message to your 2 friends&quot;,&quot;query&quot;) == True: &quot;&quot;&quot; send out the sms; include the mobile number and the text to be sent &quot;&quot;“ messaging.sms_send(nbr1, txt) messaging.sms_send(nbr2, txt) &quot;&quot;&quot; confirm with a pop-up note that the sms has been sent out &quot;&quot;&quot; appuifw.note(u&quot;Messages sent&quot;, &quot;info&quot;) else: &quot;&quot;&quot; in case the user had pressed &quot;cancel&quot;, send a pop-up note that the messages have not been sent out &quot;&quot;&quot; appuifw.note(u&quot;Well, your Messages are not sent then&quot;, &quot;info&quot;) </FONT> Pagina principal Regresar
  • 16. Recepción de SMS <FONT SIZE=2>&quot;&quot;“ Copyright (c) 2006 Jurgen Scheible This script waits for an incoming sms, reads its content and shows it inside a pop-up note NOTE: PyS60 version 1.3.1 or higher is needed to run this script. &quot;&quot;&quot; &quot;&quot;&quot; import the module inbox (that handles incoming sms things) &quot;&quot;&quot; import inbox import e32 &quot;&quot;&quot; create a function that does the content sms reading &quot;&quot;&quot; def read_sms(id): e32.ao_sleep(0.1) &quot;&quot;&quot; create once more an instance of the inbox() class &quot;&quot;“ i=inbox.Inbox() &quot;&quot;&quot; read the content out of the message that has just arrived &quot;&quot;“ sms_text = i.content(id) &quot;&quot;&quot; display the content inside a pop-up note &quot;&quot;“ appuifw.note(u&quot;sms content: &quot; + sms_text , &quot;info“) &quot;&quot;&quot; create an instance of the inbox() class &quot;&quot;&quot; i=inbox.Inbox() print &quot;send now sms to this phone“ &quot;&quot;&quot; put the phone into waiting stage to wait for an incoming message &quot;&quot;“ i.bind(read_sms) </FONT> Pagina principal Regresar
  • 17. Uso de cámara fotográfica <FONT SIZE=2>import e32, camera, appuifw, key_codes def finder_cb(im): canvas.blit(im) def take_picture(): camera.stop_finder() pic = camera.take_photo(size = (640,480)) w,h = canvas.size canvas.blit(pic,target=(0, 0, w, 0.75 * w), scale = 1) pic.save('e:Imagespicture1.jpg') def quit(): app_lock.signal() canvas = appuifw.Canvas() appuifw.app.body = canvas camera.start_finder(finder_cb) canvas.bind(key_codes.EKeySelect, take_picture) appuifw.app.title = u&quot;My Camera&quot; appuifw.app.exit_key_handler = quit app_lock = e32.Ao_lock() app_lock.wait() </FONT> Pagina principal Regresar
  • 18. Uso de FTP <FONT SIZE=2> &quot;&quot;&quot; Copyright (c) 2006 Jurgen Scheible this script lets you upload a file to a URL using the FTP protocol NOTE: you need to install first the ftplib library to your phone before you can use ftp, because the Nokia Python for S60 package does not incude it by default. NOTE: You need to install the ftplib.py file on your phone as a python library (not a python script). The ftplib.py (comes originally with the desktop python version) &quot;&quot;“ &quot;&quot;&quot; in order to get this script work, you need to fill in: - your servername (your server must be capable of using FTP) - username and password - the correct folder where to store the file &quot;&quot;“ import appuifw from ftplib import FTP &quot;&quot;&quot; name of file to be uploaded (path on phones hard drive)&quot;&quot;“ picselection = &quot;c:/testimg.gif“ def fireupfile(): global picselection ftp = FTP('www.exampleserver.com') &quot;&quot;&quot; give servername&quot;&quot;“ ftp.set_pasv('true') ftp.login('username','password') &quot;&quot;&quot; give login anonymous&quot;&quot;&quot; &quot;&quot;&quot; give correct folder where to store the image &quot;&quot;&quot; ftp.cwd('public_html/examplefolder') F=open(picselection,'r') &quot;&quot;&quot; give name of image to be stored as URL &quot;&quot;“ ftp.storbinary(&quot;STOR image.gif&quot;,F,1024) ftp.quit() F.close() if appuifw.query(u&quot;fire up image?&quot;,&quot;query&quot;) == True: fireupfile() </FONT> Pagina principal Regresar
  • 19. Envío de MMS <FONT SIZE=2>&quot;&quot;&quot; Copyright (c) 2007 Jurgen Scheible this script lets you send an mms to another phone including text and an image &quot;&quot;&quot; import appuifw import messaging &quot;&quot;&quot; create text input field &quot;&quot;“ data = appuifw.query(u&quot;Type your name:&quot;, &quot;text&quot;) &quot;&quot;&quot; define the mobile number here where to send the MMS &quot;&quot;&quot; nbr = &quot;123456&quot; &quot;&quot;&quot; change the mobile number here &quot;&quot;“ &quot;&quot;&quot; define the text that the sms shall contain &quot;&quot;“ txt = u&quot;Greetings from:&quot; +data &quot;&quot;&quot; image attachment: You must have an picture already available with the name picture1.jpg inside the folder called Images on your memory card. ('e:Imagespicture1.jpg') otherwise the script won't work. (use video or sound file instead of image) send out the mms; include the mobile number, the text and the attachement to be sent &quot;&quot;&quot; messaging.mms_send(nbr, txt, attachment='e:Imagespicture1.jpg') &quot;&quot;&quot; confirm with a pop-up note that the sms has been sent out &quot;&quot;“ appuifw.note(u&quot;MMS sent&quot;, &quot;info&quot;) </FONT> Pagina principal Regresar