Skip to content
Back to formatted view

Raw Message

Message-ID: <x2y9298m85.fsf@biostat.ku.dk>
Date: 2003-04-17T10:14:18Z
From: Peter Dalgaard
Subject: Help with TCL packages
In-Reply-To: <000901c304b2$f281f9c0$ae4860d4@YvonnickNol>

"Yvonnick Noel" <ynoel at tele2.fr> writes:

> Hello,
> 
> I am exploring the TCLTK package under R and try to load and use additional TCL libraries (under Windows, with TCL8.3). For example :
> 
> > addTclPath("C:/TCL/lib/bwidget1.5")
> > tclRequire("BWidget")
> <Tcl> 1.5
> 
> Loading seems to work, but when I try to create a specific widget :
> 
> # The main window appears correctly
> > top=tktoplevel()
> 
> # Trying to insert a combobox
> > combo <- tkwidget(top,"BWidget::combobox")
> Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : 
>         [tcl] invalid command name "BWidget::combobox".
> 
> The file combobox.tcl is present in the BWidget directory.
> 
> I wonder what I'm doing wrong. Any idea ?

I haven't got BWidgets around, but it seems that it likes to use
MacCapitalizationStyle, so shouldn't it be BWidget::ComboBox ?? 

In general, you might want to try things out in the "wish" interpreter
since R interfaces to an embedded Tcl interpreter and you're seeing
its error messages.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907