Can't manage ... it's a top-level window
- From: vnpenguin <vnpenguin@xxxxxxxxx>
- Date: Fri, 30 Nov 2007 11:59:11 -0800 (PST)
Hi all,
I'm newbie to Tcl/Tk. Just install ActiveTcl8.4.16.0.282109 on my
Win2k box. I'm try now the follow code:
=========================================
set FR0 [ labelframe .fr0 -text "Test" ];
set lb1 [ label $FR0.name1 -text "Name:" ];
set op_menu1 [ tk_optionMenu $FR0.op1 v_op1 "A" "B" "C" ];
set lb2 [ label $FR0.name2 -text "Name2::" ];
set op_menu2 [ tk_optionMenu $FR0.op2 v_op2 "X" "Y" "Z" ];
grid $lb1 $op_menu1 -row 1
grid $lb2 $op_menu2 -row 2
pack $FR0
=========================================
But when I run I got error:
Can't manage ".fr0.op1.menu": it's a top-level window
while executing
"grid $lb1 $op_menu1 -row 1"
(file "test01.tcl" line 8)
Anyone could tell me how to fix that please,
Thanks in advance,
.
- Follow-Ups:
- Re: Can't manage ... it's a top-level window
- From: Bryan Oakley
- Re: Can't manage ... it's a top-level window
- From: Aric Bills
- Re: Can't manage ... it's a top-level window
- From: Robert Heller
- Re: Can't manage ... it's a top-level window
- Prev by Date: Possible expect bug: interact closes stdout
- Next by Date: Re: Can't manage ... it's a top-level window
- Previous by thread: Possible expect bug: interact closes stdout
- Next by thread: Re: Can't manage ... it's a top-level window
- Index(es):
Relevant Pages
|