Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # copy2clipboard ZZZ
- import appuifw, e32
- try:
- import clipboard # ??? ... execfile('E:\resource\clipboard.pyc', global())
- except: pass
- body = appuifw.Text()
- appuifw.app.screen = 'normal'
- appuifw.app.body = body
- body.font=("annotation",30)
- body.color = 255,0,0
- body.style = appuifw.STYLE_BOLD
- appuifw.app.body.set(u'')
- def copy():
- text = appuifw.app.body.get()
- print 123, text
- try:
- clipboard.set(text)
- appuifw.note(u'Successfully Copied To Clipboard!', 'conf')
- except:
- appuifw.note(u'sorry, the attempt has failed to import'.title(), 'error')
- appuifw.app.menu = [(u'Clipboard', copy)]
- def quit():
- app_lock.signal()
- app_lock = e32.Ao_lock()
- appuifw.app.exit_key_handler = quit
- app_lock.wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement