aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib/tile/tbutton.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/tile/tbutton.rb')
-rw-r--r--ext/tk/lib/tkextlib/tile/tbutton.rb15
1 files changed, 5 insertions, 10 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tbutton.rb b/ext/tk/lib/tkextlib/tile/tbutton.rb
index b5c3475692..9a6245db82 100644
--- a/ext/tk/lib/tkextlib/tile/tbutton.rb
+++ b/ext/tk/lib/tkextlib/tile/tbutton.rb
@@ -15,16 +15,11 @@ end
class Tk::Tile::TButton < TkButton
include Tk::Tile::TileWidget
- TkCommandNames = ['tbutton'.freeze].freeze
+ if Tk::Tile::USE_TTK_NAMESPACE
+ TkCommandNames = ['::ttk::button'.freeze].freeze
+ else
+ TkCommandNames = ['::tbutton'.freeze].freeze
+ end
WidgetClassName = 'TButton'.freeze
WidgetClassNames[WidgetClassName] = self
-
- def create_self(keys)
- if keys and keys != None
- tk_call_without_enc('tbutton', @path, *hash_kv(keys, true))
- else
- tk_call_without_enc('tbutton', @path)
- end
- end
- private :create_self
end