Bug 15372 - No ttkscale() function in tcltk
Summary: No ttkscale() function in tcltk
Status: CLOSED FIXED
Alias: None
Product: R
Classification: Unclassified
Component: Add-ons (show other bugs)
Version: R 3.0.1
Hardware: Other All
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2013-06-30 15:15 UTC by Milan Bouchet-Valat
Modified: 2015-08-03 15:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Bouchet-Valat 2013-06-30 15:15:06 UTC
All Ttk widgets can be created using tcltk, except ttk::scale. I do not know whether this is an oversight or wether this is inteded.

In the former case, I can provide a patch, creating a simple function:
ttkscale <- function (parent, ...) tkwidget(parent, "ttk::scale", ...)
Comment 1 Brian Ripley 2013-06-30 17:29:02 UTC
It was intentional.  It was not needed within R, and nor has anyone requested it in several years.

In any case, you demonstrated the falsehood of

'All Ttk widgets can be created using tcltk, except ttk::scale.'

by the code you show.
Comment 2 Milan Bouchet-Valat 2013-06-30 18:45:10 UTC
Would you elaborate on why it is not needed? Is it because people can call tkwidget() directly? Indeed, the lack of ttkscale() is not a big deal, but AFAICT all Tk and Ttk widgets have their dedicated helper functions. Consistency is a good thing for users.

I think that if nobody requested it, it is because people use tkscale() without wondering, while ttkscale() would provide an alternative more integrated with native widgets.