From: "Left Spin" <leftspin@hotmail.com>
To: sourcenav@sourceware.cygnus.com
Subject: Problems using Tcl/Tk to customize GUI
Date: Thu, 05 Jul 2001 10:31:00 -0000 [thread overview]
Message-ID: <F110yhGvDpEDiOa7ddh0000176a@hotmail.com> (raw)
I'm trying to customize the SN GUI using Tcl/Tk under Win98.
I'm new to Tcl/Tk, and I'd sure appreciate some help
getting started using it with SN.
I put a file named rc.tcl in the following directories, it contains the
sample code to add a shell button to the UI. Needless to say, the
button doesn't show up. What am I doing wrong? Thanks in advance..
c:\program files\source navigator\H-i386-pc-cygwin\share\etc\rc.tcl
c:\home\leftspin\.sn\rc.tcl
I have an environment variable:
HOME=c:\home\leftspin
rc.tcl contains:
proc sn_rc_symbolbrowser {top menu} {
global tcl_platform
set tool_frame $top.exp
# Set a variable that identifies the text widget on
# the status bar.
set info $top.msg.msg
# Create a new button on the toolbar. Note that the
# button's command invokes the command line tool
# in the background so that Source-Navigator is not
# blocked while the tool is running. On Win32, we emulate
# `xterm' with `cmd'.
if {!$tcl_platform(platform) != "windows"} {
set cmdline "exec xterm -T {Source-Navigator} &"
set description xterm
} else {
set cmdline "exec cmd /c start cmd"
set description shell
}
button $tool_frame.xterm -text $description \
-command $cmdline
# Set the main window's status bar to read "xterm"
# or "shell" when the mouse pointer is over the region
# of the button.
balloon_bind_info $tool_frame.xterm \
"Starts a new $description"
bind $tool_frame.xterm <Leave> "set $top.msg {}"
# Pack this button onto the toolbar.
pack $tool_frame.xterm -side left
}
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
next reply other threads:[~2001-07-05 10:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-05 10:31 Left Spin [this message]
2001-07-06 0:08 ` Mo DeJong
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=F110yhGvDpEDiOa7ddh0000176a@hotmail.com \
--to=leftspin@hotmail.com \
--cc=sourcenav@sourceware.cygnus.com \
/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).