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">&lt;<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>&gt;</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>
&gt;&gt;&quot;inbox&quot; is also a Python extension for S60, so you cannot=
 use it with PythonCE just like that.<br>
<br>
&gt;&gt;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 &lt;<a href=3D"mailto:mdoukid=
[email protected]" target=3D"_blank">[email protected]</a> &lt;mailto:<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&g=
t;&gt; 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 &quot;appuifw&quot; 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 &lt;<a href=3D"mailto:=
[email protected]" target=3D"_blank">[email protected]</a><br></div><=
div><div></div><div>
 =A0 =A0&lt;mailto:<a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a>&gt;&gt; wrote:<br>
 =A0 =A0 &gt; I am new to this forum and pythonCE please help me with this =
issue.I<br>
 =A0 =A0 &gt; downloaded and installed pythonCE on my device and when i tri=
ed<br>
 =A0 =A0to run the<br>
 =A0 =A0 &gt; program<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; &lt;code&gt;<br>
 =A0 =A0 &gt; import inbox, appuifw<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; box =3D inbox.Inbox()<br>
 =A0 =A0 &gt; query =3D appuifw.query(u&quot;Search for:&quot;, &quot;text&=
quot;).lower()<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; hits =3D []<br>
 =A0 =A0 &gt; ids =3D []<br>
 =A0 =A0 &gt; for sms_id in box.sms_messages():<br>
 =A0 =A0 &gt; =A0 =A0 =A0 msg =3D box.content(sms_id).lower()<br>
 =A0 =A0 &gt; =A0 =A0 =A0 if msg.find(query) !=3D -1:<br>
 =A0 =A0 &gt; =A0 =A0 =A0 =A0 =A0 =A0hits.append(msg[:25])<br>
 =A0 =A0 &gt; =A0 =A0 =A0 =A0 =A0 =A0ids.append(sms_id)<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; index =3D appuifw.selection_list(hits, 1)<br>
 =A0 =A0 &gt; if index &gt;=3D 0:<br>
 =A0 =A0 &gt; =A0 =A0 =A0 =A0 appuifw.note(box.content(ids[index]))<br>
 =A0 =A0 &gt; &lt;/code&gt;<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; it shows me Import error:No module named inbox.<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; I not able to figure out how to include the particular file.<=
br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; --<br>
 =A0 =A0 &gt; ALWAYS KEEP SMILING<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; FOR U EVER,<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; =A0 =A0 G.MANIKANDAN<br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt; _______________________________________________<br>
 =A0 =A0 &gt; PythonCE mailing list<br></div></div>
 =A0 =A0 &gt; <a href=3D"mailto:[email protected]" target=3D"_blank">Pyth=
[email protected]</a> &lt;mailto:<a href=3D"mailto:[email protected]" targe=
t=3D"_blank">[email protected]</a>&gt;<div><br>
 =A0 =A0 &gt; <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" =
target=3D"_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br>
 =A0 =A0 &gt;<br>
 =A0 =A0 &gt;<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==--