From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29411 invoked by alias); 16 Oct 2002 02:56:16 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 29401 invoked from network); 16 Oct 2002 02:56:15 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 16 Oct 2002 02:56:15 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g9G2Zdw03569 for ; Tue, 15 Oct 2002 22:35:39 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g9G2uEf13160; Tue, 15 Oct 2002 22:56:14 -0400 Received: from localhost.localdomain (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g9G2uDT31514; Tue, 15 Oct 2002 22:56:13 -0400 Content-Type: text/plain; charset="iso-8859-1" From: "Martin M. Hunt" Organization: Red Hat Inc To: Satya , Subject: Re: Tk widgets Date: Tue, 15 Oct 2002 19:56:00 -0000 User-Agent: KMail/1.4.1 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210151954.56750.hunt@redhat.com> X-SW-Source: 2002-q4/txt/msg00047.txt.bz2 On Tuesday 15 October 2002 07:05 pm, Satya wrote: > Hi, > I am trying to create Tk widgets from the gdb command line using the tk > command. > gdb> tk frame .top -borderwidth 10 > > The problem is that the Tk widget is not getting created though the tk > command does not report any error. > > Can anyone help me figure out why this is happening. There are no errors because your widget was created, but not yet visible. There are a couple of things missing. First, you need to create a new toplevel. You also need to pack the widget to get it displayed. For example, I just tried this to verify it still works. (gdb) tk toplevel .x .x (gdb) tk button .x.b -text "Hello World" .x.b (gdb) tk pack .x.b -- Martin Hunt GDB Engineer Red Hat, Inc.