Ruby gem highline problem

S

sujeet kumar

Hi
I want to take some data at runtime from user and want data to be
not seen by others. I used
"password =3D ask("Enter your password: ") { |q| q.echo =3D "*"} " to
take password from user in console(he types password in console) . Now
I want to take password from TkEntry and want that it too should be
echoed in TkEntry.
What should I do?
thanks=20
sujeet
 
J

James Edward Gray II

Hi
I want to take some data at runtime from user and want data to be
not seen by others. I used
"password = ask("Enter your password: ") { |q| q.echo = "*"} " to
take password from user in console(he types password in console) . Now
I want to take password from TkEntry and want that it too should be
echoed in TkEntry.
What should I do?

I fear the subject of your message is a little misleading. HighLine
can't help you with this, you need a TK guru to offer a suggestion...

James Edward Gray II
 
G

Guillaume Marcais

Le 22 juin 05, =E0 08:56, James Edward Gray II a =E9crit :
I fear the subject of your message is a little misleading. HighLine=20=
can't help you with this, you need a TK guru to offer a suggestion...
I am no Tk guru, but I'll make a suggestion:

TkEntry.new {
show "*"
pack
}

should do what you. Have a look at 'man n entry' to see all the options=20=

available for the entry widget.

Hope it helps,
Guillaume.=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top