×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Registered User
    Join Date
    Sep 2008
    Posts
    2

    Talking Re: Python for S60 wiki

    Quote Originally Posted by Rafael T. View Post
    English
    ===========

    Hi Oswaldo,

    Very cool tutorial, I'm sure it will be a start point for many Brazilian developers

    As Bogdan suggests, it would be cool if you can translate it to English too!

    Great work


    Portuguese
    ===========

    Olá Oswaldo,

    Muito legal o tutorial, tenho certeza de que será um começo para muitos desenvolvedores brasileiros

    Como o Bogdan sugeriu, seria interessante traduzi-lo para inglês também!

    Bom trabalho


    BR,

    Rafael.
    English
    =======

    Hi Rafael,

    My friend Panjak Nathani translated the tutorial to english.

    I didn't write (or translate) the tutorial to english because my english is not so good (as you can see ).

    The english translation is available at http://wiki.forum.nokia.com/index.ph...ction_to_PyS60

    Portuguese
    ==========

    Oi Rafael,

    O Panjak Nathani traduziu o tutorial para o inglês. Ficou superlegal e precisa só de uma leve revisão que eu vou fazer ASAP.

    Eu não escrevi em inglês ou traduzi porque meu inglês é meio ruim

    A tradução está disponível em http://wiki.forum.nokia.com/index.ph...ction_to_PyS60

  2. #17
    Registered User
    Join Date
    May 2009
    Posts
    24

    Lightbulb Re: Python for S60 wiki

    interesting this wiki is good make me improve fast with python.

    this code would start, stop camera

    import appuifw
    import camera
    import e32

    class ViewFinder:
    def __init__(self):
    self.script_lock = e32.Ao_lock()
    self.finder_on=0

    def run(self):
    old_title = appuifw.app.title
    self.refresh()
    self.script_lock.wait()
    appuifw.app.title = old_title
    appuifw.app.body = None

    def refresh(self):
    appuifw.app.title = u"Viewfinder"
    appuifw.app.menu = [(u"Start", self.start_finder),
    (u"Stop", self.stop_finder),
    (u"Exit", self.do_exit)]
    appuifw.app.exit_key_handler = self.exit_key_handler
    appuifw.app.body=self.canvas=appuifw.Canvas()
    self.start_finder()
    self.finder_on=1

    def stop_finder(self):
    camera.stop_finder()
    self.finder_on=0
    appuifw.note(u"Viewfinder stopped")

    def start_finder(self):
    if (not self.finder_on):
    camera.start_finder(self.show_img)
    self.finder_on=1
    else:
    appuifw.note(u"Viewfinder already on")

    def show_img(self, image_frame):
    self.canvas.blit(image_frame)

    def do_exit(self):
    self.exit_key_handler()

    def exit_key_handler(self):
    camera.stop_finder()
    self.canvas=None
    appuifw.app.exit_key_handler = None
    self.script_lock.signal()

    if __name__ == '__main__':
    ViewFinder().run()

    I have the one idea. I would like to know how to send our active camera from our mobile phone via bluetooth and show on our PC.

  3. #18
    Super Contributor
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,578

    Re: Python for S60 wiki

    There are a large number of Python on Symbian topics in the wiki: Category:PySymbian

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Python for Series 60 released on Forum Nokia!
    By eriksmartt in forum Python
    Replies: 5
    Last Post: 2009-07-14, 17:00
  2. Use filebrowser.py to execute your python scripts.
    By zweiberg in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-11-01, 13:24
  3. Python 2.2? 2.3?
    By mflux in forum Python
    Replies: 3
    Last Post: 2006-06-26, 22:36
  4. Python C++ Extension with Callback crashing
    By diggerdeep in forum Python
    Replies: 2
    Last Post: 2005-11-10, 16:33
  5. Python for Series 60 wiki in the Internet
    By tapio111 in forum Python
    Replies: 0
    Last Post: 2005-01-05, 14:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •