hi
I want to open any text file of my computer and display the contents
of file in Ruby Tk. I used menu button to reach the contents of
my comp. Now how to display the content of text in Ruby Frame. Which
widget should i use ? Tk Canvas or other ... Also if I want to make
content read only what should I do?
Please help
regards
sujeet
Message-ID: <734fb924050616070346ff060a@mail.gmail.com>
my comp. Now how to display the content of text in Ruby Frame. Which
widget should i use ? Tk Canvas or other ...
Use a TkText widget.
Also if I want to make content read only what should I do?
After inserting the text into the TkText widget,
set 'state' option of the TkText widget to 'disabled'.
# Please see the man of Tcl/Tk's text widget (man n text).
ยทยทยท
From: sujeet kumar <sujeetkr@gmail.com>
Subject: How to display text file content in ruby widget
Date: Thu, 16 Jun 2005 23:03:40 +0900
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)