From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11746 invoked by alias); 26 Nov 2003 16:53:48 -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 11672 invoked from network); 26 Nov 2003 16:53:47 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 26 Nov 2003 16:53:47 -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 hAQGrkH15539 for ; Wed, 26 Nov 2003 11:53:46 -0500 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 hAQGrkw13061; Wed, 26 Nov 2003 11:53:46 -0500 Received: from [150.1.200.14] (vpn50-56.rdu.redhat.com [172.16.50.56]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id hAQGrixR018188; Wed, 26 Nov 2003 11:53:45 -0500 Subject: Re: doubt in using add command From: Keith Seitz To: KiranKumar B Shivananda Cc: Backhaus Willy , "insight@sources.redhat.com" In-Reply-To: <50EE5AD0AF6ED511833900B0D020C858029801DA@localhost> References: <50EE5AD0AF6ED511833900B0D020C858029801DA@localhost> Content-Type: text/plain Organization: Message-Id: <1069865847.1592.8.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Date: Wed, 26 Nov 2003 16:53:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q4/txt/msg00093.txt.bz2 On Wed, 2003-11-26 at 03:08, KiranKumar B Shivananda wrote: > $menubar add menubutton file "File" 0 > $menubar add command None "Close" \ > [code..................... > > > but when i tried to invoke this program it gave the following error > > can't read "menubar": no such variable. If you look at the rhabout plugin, it does this, too. The variable "menubar" is defined in the PluginWindow class. Is your plugin class inheriting this class? (See src/gdb/gdbtk/plugins/rhabout/rhabout.itcl.) > Whether I have to include my file in a particular directory? If yes > which directory? Just follow the example plugin (rhabout). That should get you nearly everything you would need. (If that fails, take a look at the intel-pentium plugin.) > Or whether I have to use lappend command to include some directory in > the auto_path? If yes please give me the directory and syntax to use > lappend You should not need to do this. This will be done by your plugin's config file, i.e., myplugin.tcl.in (see src/gdb/gdbtk/plugins/rhabout/rhabout.tcl.in). Keith