Python In Action : PyS60

Interessados em Python de plantão que nem eu , podem se contentar com esse belíssimo material retirado do Forum Nokia Blogs, sobre a instalação do emulador do PyS60 For Nokia... Muito bom mesmo material...
Esse roteiro foi seguido para o Nokia N95... mas acho que é o mesmo para outros aparelhos Symbian...

Forum Nokia Blogs


(...)

Let me start with the details of the development environment I have set up for myself.
First, I needed a Python emulator for S60 / N93. That begins with the Symbian/C++ SDK appropriate for my device. The N93 is a S60 3rd Edition device (not Feature Pack 1 or Feature Pack 2). If you are unsure about yours, check the device specs.
AFTER installing the C++ SDK, I downloaded and installed the Python SDK appropriate for my device from here. In this case all 3rd Edition devices are created equal – no SDK difference between 3rd Edition, Feature Pack 1, or Feature Pack 2. The only choice was compiler tool chain – I chose ARMV5.
Follow the release notes that tell you to unzip the files from the Python SDK into the same directory chosed for the C++ SDK.
Then launch the emulator, and you’ll see Python as an application available under “Installat.” on the main grid. Choose Options/Run script and you’ll see some sample python scripts that ship with the SDK.

Open installations folder first ...

Launch the emulator and select the installations folder.

Python runs from here

Then you can run the Python interpreter.
Tip: the sample scripts you see when running the interpreter in the emulator provide the key to using the emulator for your Python development. Use PC Search to find all the places the script ball.py is found on your machine. You’ll find one directory that looks something like c:\Symbian\9.1\S60_3rd_MR\Epoc32\winscw\c\python . If you place your python script file in that directory, you’ll be able to run it in the emulator.
Tip: there are more sample files in the Python SDK than you will see in the emulator. Whereever you extracted the SDK zip file, look for the src\extras\examples folder. Lots of good stuff there. Especially if you’re new to PyS60 and trying to get your head around the way UI works on S60 vs. the way UI works on other platforms, check out the three GUI examples.

I will post in the next couple of days details of the workflow process (including how to set up a bluetooth remote control to execute scripts on a real device), links to some critical documents, and finally the first code from this project.
BTW, those who have been following this project from the beginning may wonder what N95 is doing in the title. This blog receives a fair amount of search engine referrals from people looking for ways to hack their devices. Because the N95 is such a hot device right now, it is a popular search keyword. And because what I’m doing for my N93 applies to people interested in their N95, I want to welcome them along for the ride.

0 comentários:

top