Exemple #1
0
 def __init__(self):
  appuifw.app.body=self.body=appuifw.Text()
  self.body.color=0; self.body.font=u'LatinPlain12'
  appstdio.stdout()
  #print sys.argv
  self.is_open=0; self.search_str=''; self.replace_str=''
  self.cache=None; self.wait=0; self.save_confirm=0
  self.inputs_split=u'\u2029'+u'-'*20+u'\u2029'
  self.defaults={'title':u'TextEdit', 'text':u'\u2029'}
  self.path=r'E:\Documents\Text'+'\\'; self.recent=[]; self.recents_len=30
  self.body.set(self.defaults['text'])
  appuifw.app.exit_key_handler=self.close_or_exit
  self.body.bind(self.EKeyYes, lambda: self.save(0))
  self.body.bind(self.EKeyMenu, self.memory_lock)
  self.body.bind(self.EKeyNo, self.memory_lock)
  self.body.bind(self.EKeySelect, self.position)
  try: execfile(r'C:\System\Apps\TextEdit\TextEdit.ini')
  except: pass
  self.refresh()
Exemple #2
0
import appstdio
appstdio.name()
appstdio.stderr()
appstdio.stdout()
try: execfile(r'E:\System\Apps\Filebrwser\Filebrowser.py', globals())
except (MemoryError, SymbianError): appstdio.memerr()