Re: Import inbox error
mani kandan <[email protected]> Wed, 9 Dec 2009 10:20:46 +0530
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <[email protected]> |
--===============0669569749== Content-Type: multipart/alternative; boundary=00151774177a13ae58047a446f2a --00151774177a13ae58047a446f2a Content-Type: text/plain; charset=ISO-8859-1 Hi Mark, As you said "appuifw" is a PYS60 module so i cant include those in my windows CE.But "appuifw" is not my major concern.I need that "inbox" header file.Can u please guide me where can i download that. On Wed, Dec 9, 2009 at 6:45 AM, Mark Doukidis <[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 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 = inbox.Inbox() > > query = appuifw.query(u"Search for:", "text").lower() > > > > hits = [] > > ids = [] > > for sms_id in box.sms_messages(): > > msg = box.content(sms_id).lower() > > if msg.find(query) != -1: > > hits.append(msg[:25]) > > ids.append(sms_id) > > > > index = appuifw.selection_list(hits, 1) > > if index >= 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] > > http://mail.python.org/mailman/listinfo/pythonce > > > > > -- ALWAYS KEEP SMILING FOR U EVER, G.MANIKANDAN --00151774177a13ae58047a446f2a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Mark,<br><br>As you said "appuifw" is a PYS60 module so i cant= include those in my windows CE.But "appuifw" is not my major con= cern.I need that "inbox" header file.Can u please guide me where = can i download that.<br> <br><div class=3D"gmail_quote">On Wed, Dec 9, 2009 at 6:45 AM, Mark Doukidi= s <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">mdoukidis@gm= ail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D= "border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padd= ing-left: 1ex;"> Hi Mani<br> <br> It looks like you are trying to import a Symbian module on a Windows<br> CE platform.<br> <br> I think "appuifw" is a PYS60 module (python wrapper for Symbian S= eries<br> 60 devices)<br> <br> You should look for another GUI for a Windows CE device.<br> <br> I know Tkinter works but their are other efforts for CE.<br> <br> regards<br> <font color=3D"#888888">mark<br> </font><div><div></div><div class=3D"h5"><br> On Tue, Dec 8, 2009 at 10:40 PM, mani kandan <<a href=3D"mailto:majafrie= [email protected]">[email protected]</a>> wrote:<br> > I am new to this forum and pythonCE please help me with this issue.I<b= r> > downloaded and installed pythonCE on my device and when i tried to run= the<br> > program<br> ><br> > <code><br> > import inbox, appuifw<br> ><br> > box =3D inbox.Inbox()<br> > query =3D appuifw.query(u"Search for:", "text").lo= wer()<br> ><br> > hits =3D []<br> > ids =3D []<br> > 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=A0=A0=A0 hits.append(msg[:25])<br> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ids.append(sms_id)<br> ><br> > index =3D appuifw.selection_list(hits, 1)<br> > if index >=3D 0:<br> > =A0=A0=A0=A0=A0=A0=A0 appuifw.note(box.content(ids[index]))<br> > </code><br> ><br> > it shows me Import error:No module named inbox.<br> ><br> > I not able to figure out how to include the particular file.<br> ><br> > --<br> > ALWAYS KEEP SMILING<br> ><br> > FOR U EVER,<br> ><br> > =A0 =A0 G.MANIKANDAN<br> ><br> </div></div><div><div></div><div class=3D"h5">> ________________________= _______________________<br> > PythonCE mailing list<br> > <a href=3D"mailto:[email protected]">[email protected]</a><br> > <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" target=3D= "_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br> ><br> ><br> </div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>ALWAYS KEEP= SMILING <br><br> FOR U EVER,<br> =A0<br> =A0 =A0 G.MANIKANDAN<br> --00151774177a13ae58047a446f2a-- --===============0669569749== 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 --===============0669569749==--