Changeset 310
- Timestamp:
- 05/12/09 15:03:39 (3 years ago)
- Location:
- trunk/sandbox/jhb
- Files:
-
- 3 added
- 2 modified
-
mobile/README (modified) (1 diff)
-
mobile/ocicons.mbm (added)
-
mobile/ocwallet.py (modified) (4 diffs)
-
oc2/README (added)
-
ocwallet_v0_1_1.sis (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sandbox/jhb/mobile/README
r292 r310 3 3 ocwallet.py is the real file. Use this one. 4 4 5 5 (c) 2009 Joerg Baach, License: GPL V3 -
trunk/sandbox/jhb/mobile/ocwallet.py
r308 r310 1 import appuifw,e32 1 import appuifw,e32,os,sys 2 2 3 3 class WalletClient: … … 396 396 appuifw.app.screen='normal' 397 397 appuifw.app.exit_key_handler = app_lock.signal 398 398 import oc2 399 import sys 400 oc2path = oc2.__file__ 401 if sys.platform == 'symbian_s60': 402 basedrive = oc2path[:2] 403 if oc2path[3:].startswith('python'): 404 #no standalone app 405 mediapath = u'%s\\python\\' % basedrive 406 else: 407 #standalone app 408 mediapath = u'%s\\private\\%s\\' % (basedrive,appuifw.app.uid()) 409 else: 410 mediapath = u'' 411 399 412 #only for documenting it 400 413 #from graphics import * … … 403 416 names = dict(coin=0,opencoin=1,coins=2,detail=3,down=4,left=5,refresh=6, 404 417 restore=7,right=8,save=9,up=10,zoom=11) 405 icons = dict([(k,appuifw.Icon( u'e:\\python\\ocicons.mbm',v*2,v*2+1)) for k,v in names.items()])418 icons = dict([(k,appuifw.Icon(mediapath+u'ocicons.mbm',v*2,v*2+1)) for k,v in names.items()]) 406 419 startup('network') 407 420 import httplib, urllib 408 421 startup('ui') 409 422 import audio 410 import sys411 423 import encodings 412 424 from key_codes import EKeyLeftArrow, EKeyRightArrow … … 418 430 startup('transports') 419 431 from oc2 import transports 420 421 432 startup('media') 422 433 423 434 424 435 425 coinsound = audio.Sound.open( 'e:\\python\\coinsound.wav')436 coinsound = audio.Sound.open(mediapath+u'coinsound.wav') 426 437 427 438
