From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mo DeJong To: sourcenav@sourceware.cygnus.com Subject: Re: Problems using Tcl/Tk to customize GUI Date: Fri, 06 Jul 2001 00:08:00 -0000 Message-id: References: X-SW-Source: 2001-q3/msg00032.html On Thu, 5 Jul 2001, Left Spin wrote: > 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} { That method should be getting called from the constructor of the SymBr& class on line 84 of gui/symbolbrowser.tcl: % grep -n sn_rc_symbolbrowser symbolbrowser.tcl 83- #call user function 84: catch {sn_rc_symbolbrowser $itk_component(hull) $itk_component(hull).menu} I would be willing to bet that your Interp does not know that you defined the sn_rc_symbolbrowser method. You might want to take a look at the sn_load_rc_file in sninit.tcl to see if it is pulling in your rc.tcl file. You should be able to just set the SN_DEBUG env var to 9 and then look at the generated debug log in your C:\Temp dir. cheers Mo DeJong Red Hat Inc