SlideShare una empresa de Scribd logo
1 de 19
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente (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
 

Destacado

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
 

Destacado (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 a 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 a 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
 

Último

Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024u20211198540
 
Trabajo de Tecnología .pdfywhwhejsjsjsjsjsk
Trabajo de Tecnología .pdfywhwhejsjsjsjsjskTrabajo de Tecnología .pdfywhwhejsjsjsjsjsk
Trabajo de Tecnología .pdfywhwhejsjsjsjsjskbydaniela5
 
_Planificacion Anual NTICX 2024.SEC.21.4.1.docx.pdf
_Planificacion Anual NTICX 2024.SEC.21.4.1.docx.pdf_Planificacion Anual NTICX 2024.SEC.21.4.1.docx.pdf
_Planificacion Anual NTICX 2024.SEC.21.4.1.docx.pdfBetianaJuarez1
 
Nomisam: Base de Datos para Gestión de Nómina
Nomisam: Base de Datos para Gestión de NóminaNomisam: Base de Datos para Gestión de Nómina
Nomisam: Base de Datos para Gestión de Nóminacuellosameidy
 
Trabajo de tecnología liceo departamental
Trabajo de tecnología liceo departamentalTrabajo de tecnología liceo departamental
Trabajo de tecnología liceo departamentalEmanuelCastro64
 
Herramientas que posibilitan la información y la investigación.pdf
Herramientas que posibilitan la información y la investigación.pdfHerramientas que posibilitan la información y la investigación.pdf
Herramientas que posibilitan la información y la investigación.pdfKarinaCambero3
 
La electricidad y la electronica.10-7.pdf
La electricidad y la electronica.10-7.pdfLa electricidad y la electronica.10-7.pdf
La electricidad y la electronica.10-7.pdfcristianrb0324
 
ORIENTACIONES DE INFORMÁTICA-2024.pdf-guia
ORIENTACIONES DE INFORMÁTICA-2024.pdf-guiaORIENTACIONES DE INFORMÁTICA-2024.pdf-guia
ORIENTACIONES DE INFORMÁTICA-2024.pdf-guiaYeimys Ch
 
Trabajo de tecnología primer periodo 2024
Trabajo de tecnología primer periodo 2024Trabajo de tecnología primer periodo 2024
Trabajo de tecnología primer periodo 2024anasofiarodriguezcru
 
CommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersCommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersIván López Martín
 
Clasificación de Conjuntos de Datos Desequilibrados.pptx
Clasificación de Conjuntos de Datos Desequilibrados.pptxClasificación de Conjuntos de Datos Desequilibrados.pptx
Clasificación de Conjuntos de Datos Desequilibrados.pptxCarolina Bujaico
 
#Tare10ProgramacionWeb2024aaaaaaaaaaaa.pptx
#Tare10ProgramacionWeb2024aaaaaaaaaaaa.pptx#Tare10ProgramacionWeb2024aaaaaaaaaaaa.pptx
#Tare10ProgramacionWeb2024aaaaaaaaaaaa.pptxHugoGutierrez99
 
Tecnología Educativa- presentación maestría
Tecnología Educativa- presentación maestríaTecnología Educativa- presentación maestría
Tecnología Educativa- presentación maestríaElizabethLpezSoto
 
Trabajando con Formasy Smart art en power Point
Trabajando con Formasy Smart art en power PointTrabajando con Formasy Smart art en power Point
Trabajando con Formasy Smart art en power PointValerioIvanDePazLoja
 
Análisis de los artefactos (nintendo NES)
Análisis de los artefactos (nintendo NES)Análisis de los artefactos (nintendo NES)
Análisis de los artefactos (nintendo NES)JuanStevenTrujilloCh
 
Slideshare y Scribd - Noli Cubillan Gerencia
Slideshare y Scribd - Noli Cubillan GerenciaSlideshare y Scribd - Noli Cubillan Gerencia
Slideshare y Scribd - Noli Cubillan Gerenciacubillannoly
 
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docxTALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docxobandopaula444
 
Trabajo de tecnología excel avanzado.pdf
Trabajo de tecnología excel avanzado.pdfTrabajo de tecnología excel avanzado.pdf
Trabajo de tecnología excel avanzado.pdfedepmariaperez
 
Actividades de computación para alumnos de preescolar
Actividades de computación para alumnos de preescolarActividades de computación para alumnos de preescolar
Actividades de computación para alumnos de preescolar24roberto21
 
tecnologiaactividad11-240323205859-a9b9b9bc.pdf
tecnologiaactividad11-240323205859-a9b9b9bc.pdftecnologiaactividad11-240323205859-a9b9b9bc.pdf
tecnologiaactividad11-240323205859-a9b9b9bc.pdflauralizcano0319
 

Último (20)

Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
Inteligencia Artificial. Matheo Hernandez Serrano USCO 2024
 
Trabajo de Tecnología .pdfywhwhejsjsjsjsjsk
Trabajo de Tecnología .pdfywhwhejsjsjsjsjskTrabajo de Tecnología .pdfywhwhejsjsjsjsjsk
Trabajo de Tecnología .pdfywhwhejsjsjsjsjsk
 
_Planificacion Anual NTICX 2024.SEC.21.4.1.docx.pdf
_Planificacion Anual NTICX 2024.SEC.21.4.1.docx.pdf_Planificacion Anual NTICX 2024.SEC.21.4.1.docx.pdf
_Planificacion Anual NTICX 2024.SEC.21.4.1.docx.pdf
 
Nomisam: Base de Datos para Gestión de Nómina
Nomisam: Base de Datos para Gestión de NóminaNomisam: Base de Datos para Gestión de Nómina
Nomisam: Base de Datos para Gestión de Nómina
 
Trabajo de tecnología liceo departamental
Trabajo de tecnología liceo departamentalTrabajo de tecnología liceo departamental
Trabajo de tecnología liceo departamental
 
Herramientas que posibilitan la información y la investigación.pdf
Herramientas que posibilitan la información y la investigación.pdfHerramientas que posibilitan la información y la investigación.pdf
Herramientas que posibilitan la información y la investigación.pdf
 
La electricidad y la electronica.10-7.pdf
La electricidad y la electronica.10-7.pdfLa electricidad y la electronica.10-7.pdf
La electricidad y la electronica.10-7.pdf
 
ORIENTACIONES DE INFORMÁTICA-2024.pdf-guia
ORIENTACIONES DE INFORMÁTICA-2024.pdf-guiaORIENTACIONES DE INFORMÁTICA-2024.pdf-guia
ORIENTACIONES DE INFORMÁTICA-2024.pdf-guia
 
Trabajo de tecnología primer periodo 2024
Trabajo de tecnología primer periodo 2024Trabajo de tecnología primer periodo 2024
Trabajo de tecnología primer periodo 2024
 
CommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersCommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 Testcontainers
 
Clasificación de Conjuntos de Datos Desequilibrados.pptx
Clasificación de Conjuntos de Datos Desequilibrados.pptxClasificación de Conjuntos de Datos Desequilibrados.pptx
Clasificación de Conjuntos de Datos Desequilibrados.pptx
 
#Tare10ProgramacionWeb2024aaaaaaaaaaaa.pptx
#Tare10ProgramacionWeb2024aaaaaaaaaaaa.pptx#Tare10ProgramacionWeb2024aaaaaaaaaaaa.pptx
#Tare10ProgramacionWeb2024aaaaaaaaaaaa.pptx
 
Tecnología Educativa- presentación maestría
Tecnología Educativa- presentación maestríaTecnología Educativa- presentación maestría
Tecnología Educativa- presentación maestría
 
Trabajando con Formasy Smart art en power Point
Trabajando con Formasy Smart art en power PointTrabajando con Formasy Smart art en power Point
Trabajando con Formasy Smart art en power Point
 
Análisis de los artefactos (nintendo NES)
Análisis de los artefactos (nintendo NES)Análisis de los artefactos (nintendo NES)
Análisis de los artefactos (nintendo NES)
 
Slideshare y Scribd - Noli Cubillan Gerencia
Slideshare y Scribd - Noli Cubillan GerenciaSlideshare y Scribd - Noli Cubillan Gerencia
Slideshare y Scribd - Noli Cubillan Gerencia
 
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docxTALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
 
Trabajo de tecnología excel avanzado.pdf
Trabajo de tecnología excel avanzado.pdfTrabajo de tecnología excel avanzado.pdf
Trabajo de tecnología excel avanzado.pdf
 
Actividades de computación para alumnos de preescolar
Actividades de computación para alumnos de preescolarActividades de computación para alumnos de preescolar
Actividades de computación para alumnos de preescolar
 
tecnologiaactividad11-240323205859-a9b9b9bc.pdf
tecnologiaactividad11-240323205859-a9b9b9bc.pdftecnologiaactividad11-240323205859-a9b9b9bc.pdf
tecnologiaactividad11-240323205859-a9b9b9bc.pdf
 

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