Python.v1.3.13.S60.3rd.Edition.Docs.pdf

(560 KB) Pobierz
PyS60 Library Reference
PyS60LibraryReference
Release1.3.13final
2December2006
Nokia
Copyrightc2004-2006NokiaCorporation.
ThisisPythonforS60version1.3.13finalcreatedbyNokiaCorporation.FilesaddedbyNokiaCorpo-
rationarelicensedunderApacheLicenseVersion2.0.Theoriginalsoftware,includingmodificationsof
NokiaCorporationtherein,islicensedundertheapplicablelicense(s)forPython2.2.2,unlessspecifically
indicatedotherwiseintherelevantsourcecodefile.
See http://www.apache.org/licenses/LICENSE-2.0 and http://www.python.org/2.2.2/license.html
Abstract
ThePythonforS60Platform(PythonforS60)simplifiesapplicationdevelopmentandprovidesascripting
solutionfortheSymbianC++APIs.ThisdocumentisforPythonforS60version1.3.13finalthatis
basedonPython2.2.2.
CONTENTS
1Introduction 1
1.1Scope ............................................... 1
1.2Audience ............................................. 1
1.3NewinRelease1.3.12 ...................................... 2
1.4NamingConventions ....................................... 2
2APISummary 3
2.1PythonStandardLibrary .................................... 3
2.2PythonforS60Extensions ................................... 3
2.3Third-PartyExtensions ..................................... 4
3SelectedIssuesonPythonProgrammingforS60 5
3.1ConcurrencyAspects ...................................... 5
3.2CurrentS60PythonScriptExecutionEnvironment ..................... 5
3.3StandardI/OStreams ...................................... 6
3.4UsageofUnicode ........................................ 6
3.5DateandTime .......................................... 6
3.6SharingNativeResourcesbetweenThreads .......................... 6
3.7ScalableUserInterface ..................................... 7
3.8ErrorHandling .......................................... 7
3.9LimitationsandAreasofDevelopment ............................ 7
4OperatingSystemServicesandInformation 9
4.1 e32 —ASymbianOSrelatedservicespackage ........................ 9
4.2 sysinfo —Accesstosysteminformation ...........................11
5UserInterfaceandGraphics 13
5.1 appuifw —InterfacetotheS60GUIframework .......................13
5.2 graphics —Agraphicsrelatedservicespackage .......................24
5.3 camera —Interfacefortakingphotographs ..........................31
5.4 keycapture —Interfaceforglobalcapturingofkeyevents. .................32
5.5 topwindow —Interfaceforcreatingwindowsthatareshownontopofotherapplications. 33
6AudioandCommunicationServices 37
6.1 audio —Anaudiorelatedservicespackage ..........................37
6.2 telephone —Telephoneservices ................................38
6.3 messaging —Amessagingservicespackage .........................39
6.4 inbox —Interfacetodeviceinbox ...............................39
6.5 location —GSMlocationinformation ............................40
7DataManagement 41
7.1 contacts —Acontactsrelatedservicespackage .......................41
7.2 calendar —Accesstocalendarrelatedservices .......................44
7.3 calendarforEKA2 —Accesstocalendarrelatedservices .................50
i
Zgłoś jeśli naruszono regulamin