Python Framework for Symbian Series 60 phones

< 1 2 3 4 5 >

Monday 6 November 2006

Journal

I spent the past week messing with encoding: the idea was to create a multi-language interface. I wanted to use .lang files often used in PHP because of it's simplicity. It's format is:

;keyword
clé
(empty line)
;next
suivant
(empty line)

The problem is that I cannot for some reasons display characters out of the 128 range i.e also special characters we use in French, Finnish...

I couldn't make it, so I add to find a different solution. I'm using "dictionary" classes which is the equivalent of T classes in Symbian. Here a piece of source

import dict
 
class TLang(dict):
    def __init__(self):
        dict.__init__(self)
 
        # and now the dictionary value like:
        self['value']    = valeur
        self['Edit']     = u'Editer'
        self['Next']     = u'Suivant'
        self['Loading']  = u'Chargement'

Then we use it like

>>TAG = TLang()
>>print TAG['Loading']
Chargement

Thursday 26 October 2006

Journal

A new Python release has been published on 2006-10-24. This release offers the same functionnalities than the previous version with major bugs fixed like access to calendar and sms...

So I had to install everything again and so little testing

Thursday 19 October 2006

Journal

Today, tired of using the file explorer to run python scripts, I decided to modify the default.py file to be able to have my scripts in Options > Run script and then final be able to see proper errors outputs. default.py is the first script executed when running Python.

Then at my big surprise, I reallized at line 80

if(e32.s60_version_info >= (3,0)):
    script_dirs = [(u'c:','c:\\python'),
                   (u'e:','e:\\python')]      < ---- check this out!

Excellent isn't it? So now we just need to create a python folder in the memory card (e: drive) and use for example OBEX file transfer to push a script in this folder.

Voila!

Wednesday 18 October 2006

Journal

Yesterday and today I've installed the new Python release for both 2nd & 3rd edition emulators. I updated header and compiled the previous PyS60crypto library. So both environment are ready to use now.

I've been through long fight yesterday also with the winscw compiler for 3rd edition when compiling for emulator. Some environment variables need to be set, the SDK installer doesn't do it for us.

MWCSym2Includes = C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\MSL\MSL_C\MSL_Common\Include; C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\MSL\MSL_C\MSL_Win32\Include; C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\MSL\MSL_C\MSL_X86; C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\MSL\MSL_C++\MSL_Common\Include; C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\MSL\MSL_Extras\MSL_Common\Include; C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\MSL\MSL_Extras\MSL_Win32\Include; C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\Win32-x86 Support\Headers\Win32 SDK

MWSym2Libraries = C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\Win32-x86 Support\Libraries\Win32 SDK;C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs

MWSym2LibraryFiles = MSL_All_MSE_Symbian_D.lib;gdi32.lib;user32.lib;kernel32.lib;

Insert in Path: after Perl entry: C:\Nokia\Tools\Carbide_vs\WINSCW\Symbian_Tools\Command_Line_Tools

I'm now testing the new features of the API.

Monday 16 October 2006

Journal

Today I published Pys60cypto v0.1 with source installation packages, Apache 2 license hoping that nobody will loose as much time as I did :D

I also added the download manager page to the website so there's a new menu in the side bar. That will be helpful to keep a track on the packages.

< 1 2 3 4 5 >

LEFEVRE Damien
http://www.lfdm.net
contact@lfdm.net