PyS60 shell is usable now… atleast!

I spent few minutes on understanding the problem mentioned here
The bug is filed here

This was my first attempt at the bug…

run python, run the interacive shell
import appuifw as a
import series60_console as s
a.app.body = s.Console()
s.app.body.clear()

Then it struck me, why not add this functionality in the menu? Why type all this (or even s.app.body.clear()) when i need to clear the screen… when I can do it fromt he menu itself.

Result… this patch


PyS60 now showing the option to clear screen.

How to use the new console?
A) Copy the interactive_console.py file from c:\resources to c:\python. This needs to be done because files inside c:\resources are read-only… some symbian 3rd edition restriction crap! Refer to release notes & readme for more on this.
B) Either use the patch to patch interactive_console.py or make the changes yourself. Copy of the edited file is here
C) Run python interpreter on your phone, select run script & run the script you just edited/created in step (B)

Text Editors you can use – myeditor_mod (i used this one), more at isiam.blogspot.com and maybe EasyEdit (Not tried it on E61)

Please file your comments/etc in the bug report.
Note – This is my personal work & I take no responsibility of whatever it might break. PyS60 or Nokia cannot be held responsible for after-effects of this patch.

:-)
Happy hacking!

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.