Import inbox error
mani kandan <[email protected]> Thu, 10 Dec 2009 10:23:00 +0530
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <[email protected]> |
--===============0810708974== Content-Type: multipart/alternative; boundary=0016e64698e4e4be6f047a589481 --0016e64698e4e4be6f047a589481 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Dec 10, 2009 at 12:24 AM, Sini M=E4kel=E4 <[email protected]> w= rote: > Hi, > > > >> > >>"inbox" is also a Python extension for S60, so you cannot use it with > PythonCE just like that. > > >>Sorry, this is probably not the answer you were looking for, but the sa= d > truth. > > yeah Sini this is a sad truth for me.But can you please suggest me any > other extension of pythonCE that can be used to access the sms inbox. > > > On Wed, Dec 9, 2009 at 6:45 AM, Mark Doukidis <[email protected]<mailt= o: >> [email protected]>> wrote: >> >> 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 Serie= s >> 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] >> <mailto:[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(): >> > msg =3D box.content(sms_id).lower() >> > if msg.find(query) !=3D -1: >> > hits.append(msg[:25]) >> > ids.append(sms_id) >> > >> > index =3D appuifw.selection_list(hits, 1) >> > if index >=3D 0: >> > 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, >> > >> > G.MANIKANDAN >> > >> > _______________________________________________ >> > PythonCE mailing list >> > [email protected] <mailto:[email protected]> >> >> > http://mail.python.org/mailman/listinfo/pythonce >> > >> > >> >> >> >> >> -- >> ALWAYS KEEP SMILING >> >> FOR U EVER, >> G.MANIKANDAN >> >> >> ------------------------------------------------------------------------ >> >> >> _______________________________________________ >> PythonCE mailing list >> [email protected] >> http://mail.python.org/mailman/listinfo/pythonce >> > > --=20 ALWAYS KEEP SMILING FOR U EVER, G.MANIKANDAN --=20 ALWAYS KEEP SMILING FOR U EVER, G.MANIKANDAN --0016e64698e4e4be6f047a589481 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><div class=3D"gmail_quote"><br><div class=3D"gmail_quote">On Thu, Dec 1= 0, 2009 at 12:24 AM, Sini M=E4kel=E4 <span dir=3D"ltr"><<a href=3D"mailt= o:[email protected]" target=3D"_blank">[email protected]</a>></s= pan> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<div class=3D"im"><div><br> <br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> </blockquote> <br></div> >>"inbox" is also a Python extension for S60, so you cannot= use it with PythonCE just like that.<br> <br> >>Sorry, this is probably not the answer you were looking for, but th= e sad truth.<br> <br></div>yeah Sini this is a sad truth for me.But can you please suggest m= e any other extension of pythonCE that can be used to access the sms inbox.= <div><div></div><div class=3D"h5"><br> <br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div> On Wed, Dec 9, 2009 at 6:45 AM, Mark Doukidis <<a href=3D"mailto:mdoukid= [email protected]" target=3D"_blank">[email protected]</a> <mailto:<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&g= t;> wrote:<br> <br> =A0 =A0Hi Mani<br> <br> =A0 =A0It looks like you are trying to import a Symbian module on a Window= s<br> =A0 =A0CE platform.<br> <br> =A0 =A0I think "appuifw" is a PYS60 module (python wrapper for S= ymbian Series<br> =A0 =A060 devices)<br> <br> =A0 =A0You should look for another GUI for a Windows CE device.<br> <br> =A0 =A0I know Tkinter works but their are other efforts for CE.<br> <br> =A0 =A0regards<br> =A0 =A0mark<br> <br> =A0 =A0On Tue, Dec 8, 2009 at 10:40 PM, mani kandan <<a href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]</a><br></div><= div><div></div><div> =A0 =A0<mailto:<a href=3D"mailto:[email protected]" target=3D"_blank= ">[email protected]</a>>> wrote:<br> =A0 =A0 > I am new to this forum and pythonCE please help me with this = issue.I<br> =A0 =A0 > downloaded and installed pythonCE on my device and when i tri= ed<br> =A0 =A0to run the<br> =A0 =A0 > program<br> =A0 =A0 ><br> =A0 =A0 > <code><br> =A0 =A0 > import inbox, appuifw<br> =A0 =A0 ><br> =A0 =A0 > box =3D inbox.Inbox()<br> =A0 =A0 > query =3D appuifw.query(u"Search for:", "text&= quot;).lower()<br> =A0 =A0 ><br> =A0 =A0 > hits =3D []<br> =A0 =A0 > ids =3D []<br> =A0 =A0 > for sms_id in box.sms_messages():<br> =A0 =A0 > =A0 =A0 =A0 msg =3D box.content(sms_id).lower()<br> =A0 =A0 > =A0 =A0 =A0 if msg.find(query) !=3D -1:<br> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0hits.append(msg[:25])<br> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0ids.append(sms_id)<br> =A0 =A0 ><br> =A0 =A0 > index =3D appuifw.selection_list(hits, 1)<br> =A0 =A0 > if index >=3D 0:<br> =A0 =A0 > =A0 =A0 =A0 =A0 appuifw.note(box.content(ids[index]))<br> =A0 =A0 > </code><br> =A0 =A0 ><br> =A0 =A0 > it shows me Import error:No module named inbox.<br> =A0 =A0 ><br> =A0 =A0 > I not able to figure out how to include the particular file.<= br> =A0 =A0 ><br> =A0 =A0 > --<br> =A0 =A0 > ALWAYS KEEP SMILING<br> =A0 =A0 ><br> =A0 =A0 > FOR U EVER,<br> =A0 =A0 ><br> =A0 =A0 > =A0 =A0 G.MANIKANDAN<br> =A0 =A0 ><br> =A0 =A0 > _______________________________________________<br> =A0 =A0 > PythonCE mailing list<br></div></div> =A0 =A0 > <a href=3D"mailto:[email protected]" target=3D"_blank">Pyth= [email protected]</a> <mailto:<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>><div><br> =A0 =A0 > <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" = target=3D"_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br> =A0 =A0 ><br> =A0 =A0 ><br> <br> <br> <br> <br> -- <br> ALWAYS KEEP SMILING<br> <br> FOR U EVER,<br> =A0 =A0 =A0G.MANIKANDAN<br> <br> <br></div> ------------------------------------------------------------------------<di= v><br> <br> _______________________________________________<br> PythonCE mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= g</a><br> <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" target=3D"_bla= nk">http://mail.python.org/mailman/listinfo/pythonce</a><br> </div></blockquote> <br> </div></div></blockquote></div><br><br clear=3D"all"><br>-- <br><div><div><= /div><div class=3D"h5">ALWAYS KEEP SMILING <br><br> FOR U EVER,<br> =A0<br>= =A0 =A0 G.MANIKANDAN<br> </div></div></div><br><br clear=3D"all"><br>-- <br>ALWAYS KEEP SMILING <br>= <br> FOR U EVER,<br> =A0<br> =A0 =A0 G.MANIKANDAN<br> --0016e64698e4e4be6f047a589481-- --===============0810708974== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PythonCE mailing list [email protected] http://mail.python.org/mailman/listinfo/pythonce --===============0810708974==--