diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/tile/tcheckbutton.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/tile/tcheckbutton.rb | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tcheckbutton.rb b/ext/tk/lib/tkextlib/tile/tcheckbutton.rb index 4ba77d95d3..aff560b699 100644 --- a/ext/tk/lib/tkextlib/tile/tcheckbutton.rb +++ b/ext/tk/lib/tkextlib/tile/tcheckbutton.rb @@ -16,16 +16,11 @@ end class Tk::Tile::TCheckButton < TkCheckButton include Tk::Tile::TileWidget - TkCommandNames = ['tcheckbutton'.freeze].freeze + if Tk::Tile::USE_TTK_NAMESPACE + TkCommandNames = ['::ttk::checkbutton'.freeze].freeze + else + TkCommandNames = ['::tcheckbutton'.freeze].freeze + end WidgetClassName = 'TCheckbutton'.freeze WidgetClassNames[WidgetClassName] = self - - def create_self(keys) - if keys and keys != None - tk_call_without_enc('tcheckbutton', @path, *hash_kv(keys, true)) - else - tk_call_without_enc('tcheckbutton', @path) - end - end - private :create_self end |