Re: Import inbox error
Mark Doukidis <[email protected]> Wed, 9 Dec 2009 09:15:40 +0800
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <[email protected]> |
Hi Mani It looks like you are trying to import a Symbian module on a Windows CE platform. I think "appuifw" is a PYS60 module (python wrapper for Symbian Series 60 devices) You should look for another GUI for a Windows CE device. I know Tkinter works but their are other efforts for CE. regards mark On Tue, Dec 8, 2009 at 10:40 PM, mani kandan <[email protected]> wrote: > I am new to this forum and pythonCE please help me with this issue.I > downloaded and installed pythonCE on my device and when i tried to run the > program > > <code> > import inbox, appuifw > > box =3D inbox.Inbox() > query =3D appuifw.query(u"Search for:", "text").lower() > > hits =3D [] > ids =3D [] > for sms_id in box.sms_messages(): > =A0=A0=A0=A0=A0 msg =3D box.content(sms_id).lower() > =A0=A0=A0=A0=A0 if msg.find(query) !=3D -1: > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 hits.append(msg[:25]) > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ids.append(sms_id) > > index =3D appuifw.selection_list(hits, 1) > if index >=3D 0: > =A0=A0=A0=A0=A0=A0=A0 appuifw.note(box.content(ids[index])) > </code> > > it shows me Import error:No module named inbox. > > I not able to figure out how to include the particular file. > > -- > ALWAYS KEEP SMILING > > FOR U EVER, > > =A0 =A0 G.MANIKANDAN > > _______________________________________________ > PythonCE mailing list > [email protected] > http://mail.python.org/mailman/listinfo/pythonce > >