[R] how to work ttkspinbox ?

David Winsemius dwinsemius at comcast.net
Sat Oct 8 22:51:59 CEST 2016


> On Oct 7, 2016, at 7:15 PM, Cleber N.Borges via R-help <r-help at r-project.org> wrote:
> 
> hello all,
> 
> somebody have a example of use of  ttkspinbox ?
> I tried to use like others widgets but I get error.
> 
> Thanks in advanced for any help
> 
> cleber
> 
> ###################
> > library( tcltk )
> >
> > t <- tktoplevel()
> >
> > spin <- ttkspinbox( t )
> Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
>  [tcl] invalid command name "ttk::spinbox".
> >
> > combo <- ttkcombobox( t )
> > tkpack( combo )
> <Tcl>
> >
> 
This displays a spinbox in an X-window:

t <- tktoplevel()
s = ttkspinbox(t, from = 1.0, to = 100.0, textvariable='spinval')
tkpack(s)


> 
> 
> ---
> Este email foi escaneado pelo Avast antivírus.
> https://www.avast.com/antivirus
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list