Re: Ideas for New User Please (geoff)

[email protected]
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
I'm new too. However, as far as I understand the console for CE was
removed in recent version. I haven't really worked with user input in
pythonCE but perhaps you can use a gui textinput as suggested in a
previous post.

//START

On 1/18/06, Joshua Krohse <jkrohse at gmail.com> wrote:
>   If you know the function I am talking about, would you please share it?
> Also, any other methods of prompting for input would be useful.  This would
> be a good topic for a PythonCE Wiki page when there is one.

Joshua, you could try easygui.  It's a GUI tool for getting user input
in non-GUI programs.  It uses Tkinter, but without all of the overhead
you'd normally have.  You just use a one-liner to get the input.

#easygui-example.py
from easygui import *
import sys

while 1:
    msgbox("Hello, world!")
    msg ="What is your favorite flavor?"
    title = "Ice Cream Survey"
    choices = ["Vanilla", "Chocolate", "Strawberry", "Rocky Road"]
    choice = choicebox(msg, title, choices)
    # note that we convert choice to string, in case
    # the user cancelled the choice, and we got None.
    msgbox("You chose: " + str(choice), "Survey Result")
    msg = "Do you want to continue?"


cheers,
--
Stewart Midwinter
stewart at midwinter.ca
stewart.midwinter at gmail.com
Skype, GoogleTalk, iChatAV, MSN, Yahoo: midtoad
AIM:midtoad1

//END
> Subject: [PythonCE] Ideas for New User Please
>
> Hi group,
>
> I guess it?s been answered before, but I have been searching for hours
> with no luck.
>
> I have an application that I wrote and used raw_input successfully for
> user input that works fine on a pc but not on my pretty new ipaq.
>
> Is there an easy way to get it working?
>
> Or do I need to learn how to use Tkinter?  (I hope not, I really just
> need simple input).
>
> Also, what is the best place to download a working pythonce. I seem to
> have corrupted the one that I had working last week and tapping a .py
> file no longer works.
>
> Thanks for any useful ideas,
>
>
> Geoff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.