Python Framework for Symbian Series 60 phones

< 1 2 3 4 5 >

Thursday 7 December 2006

Journal

I finish to implement the 2 first services.

  • The app get a list of services from a XML file:

Services List

  • From the services menu I select one to go deeper. Then I get a list of items per services displayed on 3 line from a XML file:

Service List

  • If I select to go deeper, then I have a full text description the corresponding item from a XML file:

Full text description

The 2 next services require to display image and text on the same screen. The list isn't completely finished but here is a screen shot of the full description:

Full text and image description

Those 2 services should be finished to be implemented within few days.

Thursday 30 November 2006

Journal

Today I made some good progress. I coded the core of the application and loading, initialization and service discovery part. Clearly, the phone get and XML file from the server giving its URL, parse it and display the list with the homemade SingleLineList.

I'll work tonight on getting the the item id when pressing a button.

I gotta think of how to implement a global callback class to all listbox object. That could simplify the navigation in the application

Tuesday 28 November 2006

Journal

Today, almost all the UI elements are coded for now, I just need to mix pictures and text for the last one. We have the following elements:

  • A copy of the single line listbox object because of style matter(#TODO: fix transparency for icons)

  • a longtext listbox object were you can define the length in pixel and the number of lines to display (with scroll bar)

  • A normal text object (with scroll bar)

Thursday 16 November 2006

Journal

So here come some fresh news. As I mentioned in the last post the ListBox objects are not powerful and flexible enough for the project requirements. Recoding a ListBox in C++ would consume hell of time and even with the existing other list box type I couldn't satisfy the requirements.

So the last days, I made a new class in the UI package of the MobiiliPuntariAPI which is a copy of the ListBox but in Python! Performances will be poor but it works... It consist basically of drawing on a canvas.

All the logic for scrolling elements and drawing the caption took the most of the time. It's not easy nether pretty to find all cases. But it's a good base class that I will use for the other lists with extended text and extended text + picture. I might also add a little scroll bar on the right.

TODO:

  • try to find a way to have icons with transparency (tomorrow maybe :D)
  • clean the code and protect some variables and method from violation

Friday 10 November 2006

Journal

I when through services on the server With Vadym.

I now can get the first menu with the services on the emulator, so it will work on the phone. The text is displayed in UTF-8 without problems, I get special characters also.

Now the difficulties: one the news menu, we are supposed to display a description or title for the article. I can display the full text with Listbox menu which was my original idea. I can only display something like 20 characters or even less.

Conclusion, I go back to C++ and check if there is no an implementation that I could port to PyS60

< 1 2 3 4 5 >

LEFEVRE Damien
http://www.lfdm.net
contact@lfdm.net