Sponsored Content
Full Discussion: TCL/TK packing
Top Forums Programming TCL/TK packing Post 302486671 by cjcox on Monday 10th of January 2011 12:52:07 AM
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

 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
raise(n)						       Tk Built-In Commands							  raise(n)

__________________________________________________________________________________________________________________________________________________

NAME
raise - Change a window's position in the stacking order SYNOPSIS
raise window ?aboveThis? _________________________________________________________________ DESCRIPTION
If the aboveThis argument is omitted then the command raises window so that it is above all of its siblings in the stacking order (it will not be obscured by any siblings and will obscure any siblings that overlap it). If aboveThis is specified then it must be the path name of a window that is either a sibling of window or the descendant of a sibling of window. In this case the raise command will insert window into the stacking order just above aboveThis (or the ancestor of aboveThis that is a sibling of window); this could end up either raising or lowering window. EXAMPLE
Make a button appear to be in a sibling frame that was created after it. This is is often necessary when building GUIs in the style where you create your activity widgets first before laying them out on the display: button .b -text "Hi there!" pack [frame .f -background blue] pack [label .f.l1 -text "This is above"] pack .b -in .f pack [label .f.l2 -text "This is below"] raise .b SEE ALSO
lower(n) KEYWORDS
obscure, raise, stacking order Tk 3.3 raise(n)
All times are GMT -4. The time now is 06:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy