For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2004 > How to set default text on Tk::Text









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to set default text on Tk::Text
Ramprasad A Padmanabhan

2004-09-30, 11:24 am

I am creating a TK widget with a TK::Text textbox.

I want to set the default text value as "hi" like this

$txt = $mw->Text(
# -data =>"hi", # This does not work
-width => '10',
-height => '10')->pack;


But this is not working. Any clues ?

Thanks
Ram


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com