From: "Martin M. Hunt" <hunt@redhat.com>
To: Satya <satya@ittc.ku.edu>, <insight@sources.redhat.com>
Subject: Re: Tk widgets
Date: Tue, 15 Oct 2002 19:56:00 -0000 [thread overview]
Message-ID: <200210151954.56750.hunt@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0210152105290.29050-100000@pumpkin.ittc.ku.edu>
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.
next parent reply other threads:[~2002-10-16 2:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.33.0210152105290.29050-100000@pumpkin.ittc.ku.edu>
2002-10-15 19:56 ` Martin M. Hunt [this message]
2002-10-15 18:56 Satya
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200210151954.56750.hunt@redhat.com \
--to=hunt@redhat.com \
--cc=insight@sources.redhat.com \
--cc=satya@ittc.ku.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).