Python/IDLE - text in different colours
Bill Davy
Bill at SynectixLtd.com
Wed Jun 29 07:17:22 EDT 2005
Thank you Nathan, but that does not quite address my question. I want to
have code in Python so
make_the_prompt_string(Red)
make_print_output(Green)
while True:
s = raw_input("This prompt (which is really several lines long) will be
in red: ")
Foo(s)
print "And the result is in Green so the user can see it"
"Nathan Pinno" <falcon3166 at hotmail.com> wrote in message
news:42c19a13$0$7025$b9fe7a78 at news.usenetrevolution.com...
>
>
> Bill.
>
> The way is the click on view, then click script checker, or something
> like
> that. It will color code the text for you.
>
> Nathan
> "Bill Davy" <Bill at SynectixLtd.com> wrote in message
> news:d9rfb9$ob7$1 at nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
> > To make life easier for my users, I'd like to colour my prompt string
> (as
> > handed to raw_input()) a different colour to that produced by print.
> I'm
> > using Python 2.4.1 and IDLE 1.1.1 on Windows XP. Is it possible, and
> if
> so,
> > how?
> > tia,
> > Bill
> >
> >
>
>
>
> --
>
>
> ----------------------------------------------------------------
> Posted via UsenetRevolution.com - Revolutionary Usenet
> ** HIGH RETENTION ** Specializing in Large Binaries Downloads **
> http://www.UsenetRevolution.com
More information about the Python-list
mailing list