TCL/TK packing


 
Thread Tools Search this Thread
Top Forums Programming TCL/TK packing
# 1  
Old 01-09-2011
TCL/TK packing

I have a program started on a 640x480 canvas with button/labels down the left side.
I want to put a circle in the middle but am drawing a blank whether to add it after the left buttons or to wait until I can add more buttons/labels on the right because I can't remember how to get such packed on the right. I use frames to pack on the left.
I am also unsure of packing of the circle I've drawn.
Can someone work with me a little to get me restarted?
# 2  
Old 01-10-2011
A canvas widget can be packed, not the circle drawn onto a canvas. Unless Tk has changed radically (which I doubt).

Code:
frame .center
canvas .center.c -background white -width 640 -height 480
frame .left
button .left.one -text lone
button .left.two -text ltwo
button .left.three -text lthree
frame .right
button .right.one -text rone
button .right.two -text rtwo
button .right.three -text rthree

pack .left.one .left.two .left.three
pack .right.one .right.two .right.three
pack .center.c
pack .left .center .right -side left

.center.c create oval 0 0 640 480

# 3  
Old 01-10-2011
I will try ur example and get back to U, thanx.
# 4  
Old 01-11-2011
TCL/TK packing

SPOT ON!! Liked your of framing better than mine and 40 min latter I had all 200 lines working. Never before have I had such an insightful response. THANKS again!
# 5  
Old 01-11-2011
No problem

(from the author if ImPress ImPress - Home Page )

My Tcl/Tk is a bit rusty... what a powerful language and toolkit though.

I still find myself using ImPress every now and then.

If you want to try it out quickly:

http://www.ntlug.org/~ccox/impress/i...rc/impress.tcl
# 6  
Old 01-12-2011
Thanks for the offer but at the moment I am swimming in projects. Perhaps if the offer is open I can examine it down the road.
Thanx again for the memory bump everything sure fell into place when I saw your respons. FWIW it is the display for a passive radar program which I want to use to map the ionosphere (well try to anyway).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with TCL script

I need to read a file, the file has a table in it. From the table I need to choose all the rows for which AVG 2 value is greater than 0.050 and write them on to a separate file. Please help me with the TCL script for this. Thanks in Advance (0 Replies)
Discussion started by: tonystark
0 Replies

2. Programming

Tcl script

Dear Users I'm struck by while the following tcl script. foreach l { set w($l) {} set fsum 0 foreach ftemp $f($l) { set fsum lappend w($l) $fsum } } It shows me error as "missing operand at _@_ in expression "0.10308400000000001 + _@_* 0.4 * 1" ... (0 Replies)
Discussion started by: bala06
0 Replies

3. Shell Programming and Scripting

help in tcl...

how can i make a list with the n last files and their details in tcl?.. thanks. (0 Replies)
Discussion started by: eee
0 Replies

4. UNIX for Advanced & Expert Users

Please help me in tcl/tk

i am new one to tcl/tk OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh tclsh tclsh8.4 OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh % wish Application initialization failed: no display name and no $DISPLAY environment variable when i give like that i am getting error Application... (0 Replies)
Discussion started by: ponmuthu
0 Replies

5. Shell Programming and Scripting

Perl or Tcl/tk : Which one is better ?

Hi, I am just going to start learning perl, but i have about tcl that it is easy. So , i am confused that whether to go for tcl or perl. I am just learning it as my interest, but still in future which one of these will benefit me. Also please guide me about tk, can we make GUI based applications... (4 Replies)
Discussion started by: sarbjit
4 Replies

6. Shell Programming and Scripting

Need your help - tcl

Hello, Can someone explaine me the meaning of this program: #! /usr/bin/tclsh set mctal set a set b set c set d set e while {! line cell]} { } while {! line]} { } while {! line cell]} { } while {! line]} { } (0 Replies)
Discussion started by: jolecanard
0 Replies

7. Shell Programming and Scripting

TCL, how to

Does any one know how to capture the output of command called from a TCL script? I cannot figure this out. I've been working on it for 4 hours now :confused: (2 Replies)
Discussion started by: Lorna
2 Replies

8. Shell Programming and Scripting

Help with Tcl...

Hello Tcl Experts, set i 0 while { $i < 10 } { puts "$i" incr i } I am trying to print the value of "i" at the same place. i.e. it should first print "1", then in next iteration print "2" over the location of "1" and so on.... (i.e. in every iteration, delete the previous number and... (2 Replies)
Discussion started by: sumitgarg
2 Replies

9. Shell Programming and Scripting

TK/TCL Help

can someone tell my why the puts is not reflecting the variable? CUT --> set fp while {-1 != } { button .a${line} -text "${line} " -width 20 -command { puts $line } pack .a${line} } (0 Replies)
Discussion started by: hpuxrox
0 Replies

10. AIX

mksysb file packing

Hi, I have a tape made with mksysb on an AIX machine that will not restore, the system is dead to the point of needing an op sys reload. I am trying to restore some critical data files and can read the tape image with dd on another system (SCO). I have worked out the file headers enough to... (0 Replies)
Discussion started by: ovingtond
0 Replies
Login or Register to Ask a Question