×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    382

    Using python for S60, maemo linux and PC

    Hi

    I was thinking to create my application/UI using python.
    I am totally new with this and I would like to ask
    can I make my app using python so that it will work with minor changes in
    PC (windows)
    maemo linux
    S60

    I have to write server most propably for all of those but is there a chance that I could use "general" python UI.

    I think UI could talk with server using sockets.

    Please advice about the interoperability issues using python code in linux maemo, s60 and pc,
    possible UI toolkits and so on
    gtk+? or something

  2. #2
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: Using python for S60, maemo linux and PC

    Hi jalev,

    PyS60 is Python 2.2.2 + wrappers for Symbian APIs.

    Maemo runs on debian destribution and UI are done with Gtk.

    For Windows you have choice to use TKinter, wxPython and even Gtk

    The engines should be portable to all those platforms if well designed and if they do not use libraries introduced after Python 2.2.2.

    So if I were I would use PyGtk to make the UI for linux and Windows then your source should be portable. But for Python for S60 you'll be limited with the 2.2.2 libraries and you will have to rewrite the UI.

    Best Regards,

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  3. #3
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    382

    Re: Using python for S60, maemo linux and PC

    Thank you for your answer.
    So the conclusion I got is that it is possible to have soem general codes that
    can be executed in those 3 environments.
    But UI libraries are different, or if using GTK, it is oisted differently to each platform.

    If the code is using just 2.2.2 libraries it is working in S60 and might work in maemo linux also?

    Hmm.. what can I do with that 2.2.2 library only?
    actually I might be able to create data parser engine using python 2.2.2 libraries and then make UI for each platform using their own libraries.
    might be wice?

    Thank you

Posting Permissions

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