| Reply | « Previous Thread | Next Thread » |
|
Huh,
What could be wrong here, I just don't understand. Code (the very same file) works ok in S60 3.1 emulator with PyS60 1.4.5, but crashes in N82 (S60 3.1) running PyS60 1.4.5 PythonShell: Code:
if DEBUG: print "111111"
#appuifw.app.body = appuifw.Listbox(entries)
# SymbianError -1, 'KErrNotFound'
# File "e:\\python\\flagicon48.py", line 237, in ?
# appuifw.app.body = appuifw.Listbox(entries)
# Unable to find the specified object
try:
print appuifw
print appuifw.app
print appuifw.app.body
global appuifw
appuifw.app.body = appuifw.Listbox(entries)
except:
import sys
import traceback
import appuifw
cla, exc, trbk = sys.exc_info()
excName = cla.__name__
try:
excArgs = exc.__dict__["args"]
except KeyError:
excArgs = "<no args>"
excTb = traceback.format_tb(trbk, 5)
errorString = repr(excName) + '-' + repr(excArgs) + '-' + repr(excTb) + '\n'
print errorString
if DEBUG: print "222222"
Code:
111111 <module 'appuifw' from 'c:\resource\appuifw.py'> <Application object at 0x314f6198> <appuifw.Listbox object at 0x31510750> 222222 Code:
111111
<module 'appuifw' from 'c:\resource\appuifw.py'>
<Application object at 0x1713368>
<appuifw.Listbox object at 0x1738e80>
=== CALL c:\resource\site.py platsec_import@93: def platsec_import(name, globals=None, locals=None, fromlist=None):
... skipping 351 lines ...
=== RETURN c:\resource\traceback.py format_list@33: return list
[' File "e:\\python\\flagicon48.py", line 244, in ?\n appuifw.app.body = appuifw.Listbox(entries)\n']
=== RETURN c:\resource\traceback.py format_tb@57: return format_list(extract_tb(tb, limit))
[' File "e:\\python\\flagicon48.py", line 244, in ?\n appuifw.app.body = appuifw.Listbox(entries)\n']
'SymbianError'-(-1, 'KErrNotFound')-[' File "e:\\python\\flagicon48.py", line 244, in ?\n appuifw.app.body = appuifw.Listbox(entries)\n']
222222
Well, I'm writing this hoping that a) someone might be able to suggest ANYTHING and b) usually I figure out the problem/solution, when describing it to someone else. Feeling lucky, --jouni going to simplify the code even more rautalanka level |
|
Huh2,
The magic works everytime, problem solved! Got fooled by trace output, which seemed to be ok. Turned out "entries" contained corrupted data, which just happened to look like real thing... This weekend I'll release new sample code, which shows how to populate listbox with your own icons from your own MBM file. Yep, pretty boring. Not worth releasing at all. However the MBM contains 244 free-to-use and ready-to-use country flags, resolution 48x48 bits. Best of all, not drawn by me ![]() Ok, there are some issues. Got to add link to icons' original website, flags share same mask which naturally doesn't fit all etc. Still pretty nice, I would say. Cheers, --jouni going to remove several hundreds of debug code and hoping everything would still work |
|
Quote:
![]() //Croozeus |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| CAudioOutput -> KErrNotFound | heuven | Symbian Media (Graphics & Sounds) | 3 | 2009-01-15 12:32 |
| ImportContactsL leave with KErrNotFound | Shilpa13 | Symbian Networking & Messaging | 3 | 2008-01-29 19:54 |
| error KErrNotFound in MvpuoPrepareComplete | drizztdo | Symbian Media (Graphics & Sounds) | 6 | 2006-11-28 10:51 |
| KErrNotFound with RSocket.connect | penthalis | Symbian Networking & Messaging | 0 | 2005-05-26 21:56 |
| (Series 60 2.0) KErrNotFound on RConnect.Start using CCommsDatabase defaults? (long) | thrust | Symbian Tools & SDKs | 3 | 2004-04-20 17:23 |