Import inbox error
mani kandan <[email protected]> Tue, 8 Dec 2009 20:10:33 +0530
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <[email protected]> |
--===============1218540329==
Content-Type: multipart/alternative; boundary=0050450169f376d4b6047a388e2a
--0050450169f376d4b6047a388e2a
Content-Type: text/plain; charset=ISO-8859-1
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
--0050450169f376d4b6047a388e2a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I am new to this forum and pythonCE please help me with this issue.I downlo=
aded and installed pythonCE on my device and when i tried to run the progra=
m <br><br><code><br>import inbox, appuifw<br><br>box =3D inbox.Inbox(=
)<br>
query =3D appuifw.query(u"Search for:", "text").lower()=
<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 m=
sg.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(hit=
s, 1)<br>if index >=3D 0:<br>=A0=A0=A0=A0=A0=A0=A0 appuifw.note(box.cont=
ent(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 clear=
=3D"all"><br>-- <br>ALWAYS KEEP SMILING <br><br> FOR U EVER,<br> =A0<br> =
=A0 =A0 G.MANIKANDAN<br>
--0050450169f376d4b6047a388e2a--
--===============1218540329==
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
--===============1218540329==--