- Timestamp:
- 05/10/09 16:57:28 (3 years ago)
- Files:
-
- 1 modified
-
trunk/sandbox/jhb/mobile/ocwallet.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sandbox/jhb/mobile/ocwallet.py
r306 r307 19 19 self.todo = {} 20 20 self.ip = None 21 self.imagecounter = 0 21 22 22 23 def makeWalletMenu(self): … … 49 50 appuifw.app.body = self.wallet_menu 50 51 appuifw.app.title = u'opencoin wallet\nall currencies' 51 appuifw.app.menu = [(u'add Currency',self.addCurrency),52 (u'delete Currency',self.delCurrency)]52 appuifw.app.menu = [(u'add currency',self.addCurrency), 53 (u'delete currency',self.delCurrency)] 53 54 54 55 def displayActionMenu(self): … … 300 301 self.wallet.getApproval = self.getApproval 301 302 bt.send(self.wallet.listenSum(bt.receive())) 303 self.feedback(u'Receive coins: receiving...') 302 304 bt.send(self.wallet.listenSpend(bt.receive(),transport)) 303 305 import e32 … … 352 354 if sys.platform == 'symbian_s60': 353 355 self.feedback(u'Preparing internet access:searching access points') 354 e32.ao_sleep(1)355 356 import socket 356 357 aps = [ap['name'] for ap in socket.access_points()] … … 358 359 apid = appuifw.popup_menu(aps,u'select access point') 359 360 self.feedback(u'Preparing internet access:setting access point') 360 e32.ao_sleep(1)361 361 362 362 socket.set_default_access_point(aps[apid]) … … 370 370 def stopInternet(self): 371 371 pass 372 373 def filmIt(foo=None): 374 import os 375 image = screenshot() 376 counter = len(os.listdir('e:\\screenshots')) 377 filename = 'e:\\screenshots\\ocwallet%s.jpg' % counter 378 image.save(filename,filmIt) 379 372 380 373 381 def status(text): … … 376 384 else: 377 385 appuifw.app.body = appuifw.Listbox([unicode(text)], lambda: None) 386 e32.ao_sleep(0.3) 378 387 379 388 def startup(text): … … 384 393 appuifw.app.exit_key_handler = app_lock.signal 385 394 395 #startup('graphics') 396 #from graphics import * 397 #filmIt() 398 386 399 startup('network') 387 400 import httplib, urllib 388 startup('graphics')389 from graphics import *390 401 startup('ui') 391 402 import audio
