diff options
Diffstat (limited to 'ext/tk/lib/tk/button.rb')
-rw-r--r-- | ext/tk/lib/tk/button.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/button.rb b/ext/tk/lib/tk/button.rb index 04454cc6f7..770a5785bb 100644 --- a/ext/tk/lib/tk/button.rb +++ b/ext/tk/lib/tk/button.rb @@ -4,7 +4,7 @@ require 'tk' require 'tk/label' -class Tk::Button<TkLabel +class Tk::Button<Tk::Label TkCommandNames = ['button'.freeze].freeze WidgetClassName = 'Button'.freeze WidgetClassNames[WidgetClassName] = self @@ -26,4 +26,5 @@ class Tk::Button<TkLabel end end -TkButton = Tk::Button unless Object.const_defined? :TkButton +#TkButton = Tk::Button unless Object.const_defined? :TkButton +Tk.__set_toplevel_aliases__(:Tk, Tk::Button, :TkButton) |