在python-chinese的MailList看到了有人讨论Python for S60于是Google一下,去到
NOKIA论坛发现已经是Version1.2了。下载了对应我的SendoX的SIS。安装完成后运行,界面如下(是不是跟PC版没有什么区别)。下载包里面还带了一些example,把这些.py文件放在*:\system\app\python下,运行Python解释器后选择options->Run script在文件列表里选择你想要运行的脚本就可以看到example了。当然如果你很牛,手指运动足够快,也可以直接用手机在命令行里打代码:)。
一下是Version 1.2的特性说明(不大会翻译,大家对着原文看了):
Version 1.2 is Nokia's second major release of the Python for S60
environment. The new version includes support for the following new
features:
1.2版是Nokia在S60环境下Pyton开发的第二个重要版本.该版本支持一下新特性
- 2D Graphics, Images, and Full-screen applications
- (支持)2D 图形,图象和全屏应用程序
- Camera and Screenshot API
- 摄像头和截屏API
- Contacts and Calendar API
- 电话本和日历API
- Sound recording and playback
- (支持)声音录制和回访
- Access to System info, such as IMEI number, disk space, free memory, etc.
- (支持)访问系统信息,比如:IMEI码,磁盘空间,空闲内存空间等
- Rich text display (fonts, colors, styles)
- 多文本格式显示(字体,颜色,样式)
- Support for Scalable UI
- 支持Scalable UI
- Expanded key events
- 整强了按键事件
- Telephone dialing
- 电话拨号
- ZIP module
- ZIP模块
Version 1.2 continues to include features from the 1.0 release, such as:
1.2版继续包含原1.0版的特性,例如:
- Networking support for GPRS and Bluetooth
- 支持GPRS和蓝牙网络
- On-device and remote Python console
- Support for native GUI widgets
- 支持本地的GUI widgets
- SMS sending
- SMS短信发送
- Application build tool for packaging stand-alone application installers
- 可直接打包生成成独立的安装程序
- Compatible with all Series 60 1st and 2nd Edition devices
- 保持程序在所有S60 第一版和第二版设备上具有一致性(平台无关)