Python for S60
Python syntax Lessons
PyS60 Tutorials Menu
Logs Module
1. How to get the latest missed calls number
import logs m=logs.calls(mode='missed')[0] #The dictionary for the latest missed call print m["number"] #Displays the value for the entry "number"
2.How to get the list of incoming calls
import logs #import the module n=logs.calls(mode='in') #set mode to get the list of incoming numbers. for i in range(len(n)): print n[i]["number"]
3.How to get latest dialed number
import logs m=logs.calls(mode='out')[0] #The dictionary for the latest dialed call print m["number"] #Displays the value for the entry "number"
4. Show the list of all numbers from which sms has been received.
import logs #import the module n=logs.sms(mode='in') #set mode to get the list of numbers of received sms for i in range(len(n)): print n[i]["number"]