jverzani / gWidgets2

Rewrite of gWidgets
35 stars 9 forks source link

Can I use gtoolbar with tcltk? #106

Closed zhibisora closed 2 years ago

zhibisora commented 2 years ago
require(tcltk)
require(gWidgets2)
require(gWidgets2tcltk)

then

win <- gwindow('R',visible=TRUE)
my_Open <-  gaction(label="Open", icon="open",handler=function(h,...){
    # ...
})
my_list <- list(
  open = my_Open,
  sep = list(separator = TRUE))
gtb <- gtoolbar(toolbar.list = my_list, container = win)

that will cause an error

Error in UseMethod(".gtoolbar") : 
  no applicable method for '.gtoolbar' applied to an object of class "c('guiWidgetsToolkittcltk', 'guiWidgetsToolkit')"

So, can I use gtoolbar with tcltk?

jverzani commented 2 years ago

Sorry, this is definitely a bug. I am getting around to fixing this up, so hopefully can identify and close soon.

jverzani commented 2 years ago

This should be closed in release 1.0-7. Thanks for the bug report.