[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tklua
- From: Siome Klein Goldenstein <siome@...>
- Date: Wed, 31 Oct 2001 18:36:33 -0500
Hi Daniel
Take a look at the examples that are in the 'test' subdirectory.
Tklua is "simpler" than TCL/TK, you don't actually use pack...
a frame, for example, will have the list of objects that it
holds, and so does the the "main window"
test1.lua is very clear about it:
--$debug
hello = tklabel{text="Hello world!"}
message = tkmain{hello}
message:title("demo1")
message:show()
H
ope it helps.
Siome
On Wed, Oct 31, 2001 at 05:39:45PM -0500, Daniel Perry wrote:
> Okay, I sound like a real idiot :), but I got it compiled and everything,
> but now, i can't figure out how to use the tcl command `pack'.
> I have the following tcl code:
> >> entry .input
> >> pack .input -fill x -side bottom
> >> bind .input <Key-Return> {handle_input $sock $line; set line ""}
> >> .input config -textvar line
> >>
> >> text .output -font {{Courier} 8} -background #000000 -foreground #FFFFFF
> >> pack .output -expand 1 -fill both -side left -anchor nw
> >> scrollbar .scroll -command ".output yview" -orient vertical
> >> pack .scroll -fill y -side right
> >> focus .input
> which i have the basics already done, but I can't get pack to work (the
> documentation isn't vary detailed on commands, or anything)
> Anyone help? ;)
> -daniel
--
----------------------------
Siome Klein Goldenstein
siome@cis.upenn.edu
http://www.cis.upenn.edu/~siome