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 &quot;appuifw&quot; is a PYS60 module so i cant=
 include those in my windows CE.But &quot;appuifw&quot; is not my major con=
cern.I need that &quot;inbox&quot; 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">&lt;<a href=3D"mailto:[email protected]">mdoukidis@gm=
ail.com</a>&gt;</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 &quot;appuifw&quot; 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 &lt;<a href=3D"mailto:majafrie=
[email protected]">[email protected]</a>&gt; wrote:<br>
&gt; I am new to this forum and pythonCE please help me with this issue.I<b=
r>
&gt; downloaded and installed pythonCE on my device and when i tried to run=
 the<br>
&gt; program<br>
&gt;<br>
&gt; &lt;code&gt;<br>
&gt; import inbox, appuifw<br>
&gt;<br>
&gt; box =3D inbox.Inbox()<br>
&gt; query =3D appuifw.query(u&quot;Search for:&quot;, &quot;text&quot;).lo=
wer()<br>
&gt;<br>
&gt; hits =3D []<br>
&gt; ids =3D []<br>
&gt; for sms_id in box.sms_messages():<br>
&gt; =A0=A0=A0=A0=A0 msg =3D box.content(sms_id).lower()<br>
&gt; =A0=A0=A0=A0=A0 if msg.find(query) !=3D -1:<br>
&gt; =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 hits.append(msg[:25])<br>
&gt; =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ids.append(sms_id)<br>
&gt;<br>
&gt; index =3D appuifw.selection_list(hits, 1)<br>
&gt; if index &gt;=3D 0:<br>
&gt; =A0=A0=A0=A0=A0=A0=A0 appuifw.note(box.content(ids[index]))<br>
&gt; &lt;/code&gt;<br>
&gt;<br>
&gt; it shows me Import error:No module named inbox.<br>
&gt;<br>
&gt; I not able to figure out how to include the particular file.<br>
&gt;<br>
&gt; --<br>
&gt; ALWAYS KEEP SMILING<br>
&gt;<br>
&gt; FOR U EVER,<br>
&gt;<br>
&gt; =A0 =A0 G.MANIKANDAN<br>
&gt;<br>
</div></div><div><div></div><div class=3D"h5">&gt; ________________________=
_______________________<br>
&gt; PythonCE mailing list<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]</a><br>
&gt; <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" target=3D=
"_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br>
&gt;<br>
&gt;<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==--