You Are Here:

Community: Developer Discussion Boards

#1 Old Question Svg- icon and 3rd? Py2sis 3rd status? - 2007-02-01, 14:41

Join Date: Sep 2006
Posts: 51
big_pig's Avatar
big_pig
Offline
Regular Contributor
Hi,
how to get icon with an Python application (3rd)?
I can, with ensymble, create a working sis-file.
The tool has option for icon creation, don't work
for me.
If I use some tool as "Inkscape" to creare an icon
svg- file, no success. I tried to use also svg2svgt- tool
no success, even Inkscape understands my effort
and tells correct file created.

How to get it to work?
(is it 64x64?)

An other question about 3rd py2sis current status.
To my understanding somebody tells it works but
again: I have problems. It creates always 2nd- style
pkg- file to py2sis/temp folder.

Any step by step guide available?
Do I need a mif-file then? How to create it if I have svg-file?
Why I ask about that, even ensymble works fine, is
that ensymble cannot put pyc, pyd files to RESOURES yet.


Thanks
Reply With Quote

#2 Old Re: Svg- icon and 3rd? Py2sis 3rd status? - 2007-02-01, 15:00

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi big_pig

I don't have solution for your icon issue since I haven't been through that yet.

About the 3rd edition py2sis: do you have both 2nd and 3rd edition installed on the same machine? I've had some similar problems and the solution was that the 2nd edition devices was by default when I tried to make a sis for 3rd edition.

So if it is the case just check which device is the default one in the command prompt:
Code:
...\>devices
S60_2nd_FP2:com.nokia.Series60 - default
S60_3rd_MR:com.nokia.s60
And then set the proper one
Code:
...\>devices -setdefault @S60_3rd_MR:com.nokia.s60
...\>devices
S60_2nd_FP2:com.nokia.Series60
S60_3rd_MR:com.nokia.s60 - default
That could solve your problem.

Then try again the py2sis.

Please, need help on svg conversion

LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#3 Old Re: Svg- icon and 3rd? Py2sis 3rd status? - 2007-02-01, 16:34

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
to LFD :

There's a better solution for easily changing SDK version : EnvSwitch from another FNC Vinod Kumar

links : EnvSwitch executable


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#4 Old Re: Svg- icon and 3rd? Py2sis 3rd status? - 2007-02-01, 18:57

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
About SVG icons: SVG files from Inkscape do not normally have the "viewBox"-attribute, causing icon rendering to fail. See this Forum Nokia Technical Library page (KIS000398) for details:

http://www.forum.nokia.com/document/..._attribute.htm

Also, current 3rd Edition phones cache icons and do not re-render them, even if an application is removed and reinstalled. The only way to see the new icon take effect is to restart the phone.

Using SVG2SVGT is not strictly necessary, although it does make the icon files smaller. I've succesfully taken SVG files from http://www.openclipart.org and used them as icons, without running them through SVG2SVGT. Converting SVG (or SVG-T) files into MIFs is done using the mifconv.exe tool from S60 3rd Edition SDK. Ensymble, however, uses SVGs (or SVG-Ts) directly, and converts them to MIFs internally.
Reply With Quote

#5 Old Re: Svg- icon and 3rd? Py2sis 3rd status? - 2007-02-01, 21:39

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Sweet cycke64!

Very nice, I saw once a screen shot of that application but I didn't have to to check what it was about and after I just forgot all about it

LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#6 Old Re: Svg- icon and 3rd? Py2sis 3rd status? - 2008-08-24, 21:17

Join Date: Aug 2008
Posts: 28
skewlboy
Offline
Registered User
Quote:
Originally Posted by jethro.fn View Post
Also, current 3rd Edition phones cache icons and do not re-render them, even if an application is removed and reinstalled. The only way to see the new icon take effect is to restart the phone.
Big thanks! I was freaking out using other apps SVG icons for testing how to use ensymble, and my application always kept the default Python icon.. Something so simple as reboot.. Heh Thanks once again

What are the requirements on the SVG file to be displayed correctly in the phone?
I've been trying a few SVGs I find online but none worked, except the ones I find in public SVNs for other symbian apps..
Are there some characteristics I should check on the SVG before packing it? Because this trial and error takes quite some time, needing to reboot the phone (damn slow E65)
Last edited by skewlboy : 2008-08-24 at 21:33.
Reply With Quote

#7 Old Re: Svg- icon and 3rd? Py2sis 3rd status? - 2008-08-25, 08:13

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by skewlboy View Post
Are there some characteristics I should check on the SVG before packing it?
Check for the viewBox attribute, as explained above.
Reply With Quote

#8 Old Re: Svg- icon and 3rd? Py2sis 3rd status? - 2008-08-25, 08:21

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by jethro.fn View Post
About SVG icons: SVG files from Inkscape do not normally have the "viewBox"-attribute, causing icon rendering to fail. See this Forum Nokia Technical Library page (KIS000398) for details:

http://www.forum.nokia.com/document/..._attribute.htm
The link doesn't work for me.

Here is a working link
http://wiki.forum.nokia.com/index.ph...wBox_attribute

Best Regards,
Croozeus
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with MIDlet icon size in application shell on S60 3rd edition devices knorring Mobile Java General 7 2007-09-05 11:38
SVG Icon problem for 3rd edition techietintu General Symbian C++ 8 2007-01-12 13:39
main application icon in 3rd Edition (bmp vs svg) Jeepy General Symbian C++ 0 2006-12-30 21:49
py2sis and 3rd? big_pig Python 2 2006-12-13 13:58
how to create a bitmap app icon - bmp, svg (S60 3rd) Jeepy General Symbian C++ 7 2006-09-22 04:27

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia